Skip to content

Conversation

@mikeybtn
Copy link
Contributor

No description provided.

@mikeybtn mikeybtn requested a review from griffinmyers June 12, 2017 13:50
Copy link
Contributor

@griffinmyers griffinmyers left a comment

Choose a reason for hiding this comment

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

This is great. Thanks @mikeybtn.

Would you mind dropping a quick note in the README about the err object so people are aware?

I imagine returning response as a key on the result will also be handy someday.

var response = JSON.parse(rawResponse);
} catch (e) {
return callback(new Error('Error parsing response as JSON: ' + rawResponse), null);
return callback(
Copy link
Contributor

Choose a reason for hiding this comment

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

style nit: drop null and the trailing ) onto new lines, like on line 75. Optional, because I haven't found an eslint rule for it yet!

@griffinmyers
Copy link
Contributor

Also, happy to publish when you merge to master--let me know if you don't have the npm creds.

@mikeybtn
Copy link
Contributor Author

@griffinmyers thanks, PTAL!

Copy link
Contributor

@griffinmyers griffinmyers left a comment

Choose a reason for hiding this comment

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

:shipit: !!

@mikeybtn mikeybtn merged commit 3d10227 into master Jun 12, 2017
@mikeybtn mikeybtn deleted the mikey/add-response-to-errors branch June 12, 2017 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants