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

Update request.js #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

tomfuertes
Copy link

Errors throw encoded via current API and it's hard to tell why.

Patchwork of diff in #73

All credit to @richardkeller411 - please merge so we can get that 🔥

lib/request.js Outdated
const error = new Error(`Request returned error code: ${res.statusCode} and body: ${body}`);
error.code = res.statusCode;
error.responseBody = body;

return reject(error);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these spaces

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@syJSdev (removed)

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

Successfully merging this pull request may close these issues.

2 participants