Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTError should be more verbose #122

Open
srl295 opened this issue May 23, 2018 · 0 comments
Open

RESTError should be more verbose #122

srl295 opened this issue May 23, 2018 · 0 comments

Comments

@srl295
Copy link
Contributor

srl295 commented May 23, 2018

It seems that in the following situation resp.obj.message is not set, perhaps because the 500's error is in a non-JSON body.

     Error: [[email protected]]: 500:Error undefined
        at Object.RESTError (/usr/src/app/node_modules/g11n-pipeline/lib/utils.js:168:11)
        at verifyError (/usr/src/app/node_modules/g11n-pipeline/lib/utils.js:140:27)
        at <anonymous>
         at process._tickCallback (internal/process/next_tick.js:188:7)

Also, the returned Error object should include the entire response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant