summaryrefslogtreecommitdiff
path: root/pkg/vpn/bonafide/bonafide.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-09-17 18:35:54 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-09-25 13:08:45 +0200
commiteb27557a27add4e34ecb3b34a4aa3d2f6f167166 (patch)
tree58af56847ee5e4c0cddcc761cc41f60dc8808ea6 /pkg/vpn/bonafide/bonafide.go
parentf5e3655bfd66d19b37f1359fa91f841b687e339d (diff)
[test] fix the tests to work with the new vendoring
Diffstat (limited to 'pkg/vpn/bonafide/bonafide.go')
-rw-r--r--pkg/vpn/bonafide/bonafide.go2
1 files changed, 1 insertions, 1 deletions
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{}