From d13e907952ae818bc1c3abe1c011ae5f38f8fd18 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Thu, 27 Aug 2020 16:11:21 -0300 Subject: [PATCH] btcd: fix conversion of int to string failing in Go 1.15 --- upnp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upnp.go b/upnp.go index feb256d0..c74e4ed7 100644 --- a/upnp.go +++ b/upnp.go @@ -36,6 +36,7 @@ import ( "bytes" "encoding/xml" "errors" + "fmt" "net" "net/http" "os" @@ -229,7 +230,7 @@ func getServiceURL(rootURL string) (url string, err error) { } defer r.Body.Close() if r.StatusCode >= 400 { - err = errors.New(string(r.StatusCode)) + err = errors.New(fmt.Sprint(r.StatusCode)) return } var root root