Skip to content

Conversation

@thehobbit85
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ad6284f on thehobbit85:master into ** on pocesar:master**.

if (_.has(command, 'error') && (!_.isNull(command['error']) && !_.isEmpty(command['error']))) {
// we have an error, we need to act on that, regardless of other members in the command received
throw new Error(command);
throw Object.assign(new Error(command.error[1]), {
Copy link
Owner

Choose a reason for hiding this comment

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

doesn't this change the error to become an object? can it still be throwable?

Copy link

@LinusU LinusU Mar 1, 2017

Choose a reason for hiding this comment

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

It will still be an error object 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, it is still ok :)
All the tests works 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

btw, tiny tip, you can update version using this:
https://docs.npmjs.com/cli/version
it will create a nice version tag and will commit it.
makes package updating a little more consistent :)

@pocesar
Copy link
Owner

pocesar commented Mar 1, 2017

thanks!

@pocesar pocesar merged commit 48cae76 into pocesar:master Mar 1, 2017
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.

4 participants