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 {