mirror of
https://github.com/golang/go
synced 2024-11-18 16:44:43 -07:00
14491a2ec4
When fmt.Errorf is provided with a %w verb with an error operand, return an error implementing an Unwrap method returning that operand. It is invalid to use %w with other formatting functions, to use %w multiple times in a format string, or to use %w with a non-error operand. When the Errorf format string contains an invalid use of %w, the returned error does not implement Unwrap. Change-Id: I534e20d3b163ab22c2b137b1c9095906dc243221 Reviewed-on: https://go-review.googlesource.com/c/go/+/176998 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org> |
||
---|---|---|
.. | ||
doc.go | ||
errors_test.go | ||
errors.go | ||
example_test.go | ||
export_test.go | ||
fmt_test.go | ||
format.go | ||
gostringer_example_test.go | ||
print.go | ||
scan_test.go | ||
scan.go | ||
stringer_example_test.go | ||
stringer_test.go |