We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d8290b commit 648b9d9Copy full SHA for 648b9d9
src/net/url/url.go
@@ -26,7 +26,7 @@ type Error struct {
26
}
27
28
func (e *Error) Unwrap() error { return e.Err }
29
-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) }
30
31
func (e *Error) Timeout() bool {
32
t, ok := e.Err.(interface {
0 commit comments