String returns a string representation of the error. In particular, if the error is nil, it returns an empty string instead of panicking.
(err error)
| 122 | // String returns a string representation of the error. In particular, if the |
| 123 | // error is nil, it returns an empty string instead of panicking. |
| 124 | func String(err error) string { |
| 125 | if err == nil { |
| 126 | return "" |
| 127 | } |
| 128 | return err.Error() |
| 129 | } |