mirror of
https://github.com/golang/go
synced 2024-11-17 07:45:09 -07:00
sprintf
This commit is contained in:
parent
6d8290b599
commit
648b9d93fe
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user