Error implementes the error interface.
()
| 63 | |
| 64 | // Error implementes the error interface. |
| 65 | func (l *locationError) Error() string { |
| 66 | if l.error == nil { |
| 67 | return "" |
| 68 | } |
| 69 | return l.error.Error() |
| 70 | } |
| 71 | |
| 72 | // *locationError implements Locationer.Location interface |
| 73 | func (l *locationError) Location() (string, int) { |