Skip to content

Commit

Permalink
sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanb committed Aug 28, 2019
1 parent 6d8290b commit 648b9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Error struct {
}

func (e *Error) Unwrap() error { return e.Err }
func (e *Error) Error() string { return e.Op + " " + strconv.Quote(e.URL) + ": " + e.Err.Error() }
func (e *Error) Error() string { return fmt.Sprintf("%s %q: %s", e.Op, e.URL, e.Err) }

func (e *Error) Timeout() bool {
t, ok := e.Err.(interface {
Expand Down

0 comments on commit 648b9d9

Please sign in to comment.