(resp)
| 3 | |
| 4 | // TODO: replace with default handler in requestSingle/requestBatch variants |
| 5 | function checkForError(resp) { |
| 6 | if ('code' in resp) { |
| 7 | throw errors.create( |
| 8 | errors.types.BAD_REQUEST, |
| 9 | errors.formatErrMsg(resp, ''), |
| 10 | {body: resp} |
| 11 | ) |
| 12 | } |
| 13 | return resp |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * A blockchain consists of an immutable set of cryptographically linked |
no test coverage detected