Error returns the underlying error's message.
()
| 148 | |
| 149 | // Error returns the underlying error's message. |
| 150 | func (err *Error) Error() string { |
| 151 | |
| 152 | msg := err.Err.Error() |
| 153 | if err.prefix != "" { |
| 154 | msg = fmt.Sprintf("%s: %s", err.prefix, msg) |
| 155 | } |
| 156 | |
| 157 | return msg |
| 158 | } |
| 159 | |
| 160 | // Stack returns the callstack formatted the same way that go does |
| 161 | // in runtime/debug.Stack() |
no outgoing calls