Skip to content

Commit

Permalink
btcd: fix conversion of int to string failing in Go 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobond authored and jakesylvestre committed Aug 31, 2020
1 parent 90a5c79 commit d13e907
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upnp.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
"bytes"
"encoding/xml"
"errors"
"fmt"
"net"
"net/http"
"os"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d13e907

Please sign in to comment.