Adding this `Error` method makes `argError` implement the `error` interface.
()
| 19 | // Adding this `Error` method makes `argError` implement |
| 20 | // the `error` interface. |
| 21 | func (e *argError) Error() string { |
| 22 | return fmt.Sprintf("%d - %s", e.arg, e.message) |
| 23 | } |
| 24 | |
| 25 | func f(arg int) (int, error) { |
| 26 | if arg == 42 { |