btcd: fix conversion of int to string failing in Go 1.15

This commit is contained in:
Federico Bond 2020-08-27 16:11:21 -03:00 committed by Jake Sylvestre
parent 90a5c7997c
commit d13e907952

View file

@ -36,6 +36,7 @@ import (
"bytes" "bytes"
"encoding/xml" "encoding/xml"
"errors" "errors"
"fmt"
"net" "net"
"net/http" "net/http"
"os" "os"
@ -229,7 +230,7 @@ func getServiceURL(rootURL string) (url string, err error) {
} }
defer r.Body.Close() defer r.Body.Close()
if r.StatusCode >= 400 { if r.StatusCode >= 400 {
err = errors.New(string(r.StatusCode)) err = errors.New(fmt.Sprint(r.StatusCode))
return return
} }
var root root var root root