thallium205 / xero

Xero Library for Private Applications in Node
48 stars 55 forks source link

error messages #22

Closed awb99 closed 8 years ago

awb99 commented 8 years ago

When there is an error with the request, then the error should be forewarded to the client. I suggest to paste the complete xml error message that comes from xero.

Otherwise, one never knows the reason WHY something went wrong.

andrew-wharton commented 8 years ago

Hi @awb99,

This seems to be an issue with the example. This library is simply a wrapper around the Xero API, so it's your application's responsibility to handle how it handles errors from Xero API.

I'll close this as I'm going to update the example in the README.