Error implements the error interface.
()
| 76 | |
| 77 | // Error implements the error interface. |
| 78 | func (e UnauthorizedError) Error() string { |
| 79 | if flag.Lookup("test.v") != nil { |
| 80 | return e.longError() |
| 81 | } |
| 82 | return errUnauthorized |
| 83 | } |
| 84 | |
| 85 | // Internal allows the internal error message to be logged. |
| 86 | func (e *UnauthorizedError) Internal() error { |