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
1 changed files with 2 additions and 1 deletions

View File

@ -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