bananaml/banana-node-sdk

sdk should throw errors instead of strings

Opened this issue · 0 comments

it is good practice to throw Error objects instead of strings, this way you can trace where the error comes from

throw `server error: status code ${err.response.status}`

This line should be replaced with throw new Error('error message')