Skip to content

Added promises / add options for error handling#11

Open
lufinkey wants to merge 11 commits intorauschma:masterfrom
lufinkey:master
Open

Added promises / add options for error handling#11
lufinkey wants to merge 11 commits intorauschma:masterfrom
lufinkey:master

Conversation

@lufinkey
Copy link
Copy Markdown

@lufinkey lufinkey commented Dec 1, 2018

I made it so that if a callback isn't passed, a promise will be returned.

I also fixed your handling of the error in the end event. It's usually better to handle errors rather than throwing them. The options argument lets you silence error logging.

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.

1 participant