1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:45:09 -07:00
This commit is contained in:
Stefan Baebler 2019-08-28 14:08:53 +02:00
parent 6d8290b599
commit 648b9d93fe

View File

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