()
| 24 | } |
| 25 | |
| 26 | func (e Error) Error() string { |
| 27 | s := e.Message |
| 28 | |
| 29 | if e.Type != "genericError" && e.Type != "" { |
| 30 | s = e.Type + ": " + e.Message |
| 31 | } |
| 32 | |
| 33 | if e.RequestID != "" { |
| 34 | return s + " (" + e.RequestID + ")" |
| 35 | } |
| 36 | |
| 37 | return s |
| 38 | } |
| 39 | |
| 40 | // createError creates a new kite.Error for the given r variable |
| 41 | func createError(req *Request, r interface{}) *Error { |
nothing calls this directly
no outgoing calls
no test coverage detected