From eb27557a27add4e34ecb3b34a4aa3d2f6f167166 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 17 Sep 2020 18:35:54 +0200 Subject: [test] fix the tests to work with the new vendoring --- pkg/vpn/bonafide/bonafide.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/vpn/bonafide/bonafide.go') diff --git a/pkg/vpn/bonafide/bonafide.go b/pkg/vpn/bonafide/bonafide.go index e65e193..fe22deb 100644 --- a/pkg/vpn/bonafide/bonafide.go +++ b/pkg/vpn/bonafide/bonafide.go @@ -244,7 +244,7 @@ func (b *Bonafide) fetchGeolocation() ([]string, error) { defer resp.Body.Close() if resp.StatusCode != 200 { log.Println("ERROR: bad status code while fetching geolocation:", resp.StatusCode) - return nil, fmt.Errorf("Get geolocation failed with status: %s", resp.StatusCode) + return nil, fmt.Errorf("Get geolocation failed with status: %d", resp.StatusCode) } geo := &geoLocation{} -- cgit v1.2.3