(body []byte)
| 75 | } |
| 76 | |
| 77 | func unmarshalError(body []byte) error { |
| 78 | var rsp response |
| 79 | if err := json.Unmarshal(body, &rsp); err != nil { |
| 80 | return err |
| 81 | } |
| 82 | if rsp.Error != nil { |
| 83 | return errors.New(rsp.Error.Message) |
| 84 | } |
| 85 | return nil |
| 86 | } |
no outgoing calls
no test coverage detected