Skip to content

Debug mode for better error debugging#8

Closed
ghost wants to merge 2 commits intomasterfrom
unknown repository
Closed

Debug mode for better error debugging#8
ghost wants to merge 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Oct 15, 2014

I added two new properties on ayepromise, debugMode and suppressedErros.

When debugMode is on, all thrown errors catched inside promises (resulting on rejection) will be logged on the console window and added to the suppressedErros array.

ericprieto added 2 commits October 15, 2014 15:59
Debug mode added, for better error debugging
@cburgmer
Copy link
Owner

Hi, thanks for sharing.

I'd like to keep the library as small as possible. Most modules in npm try to do one thing, and do it well. I've tried to move your code into a independent module, that wraps itself around ayepromise: https://gist.github.com/cburgmer/849e1d0eff709bd02c10

Let me know, if that works for you. We could document this solution in an example directory along side the code. What do you think?

@ghost ghost closed this Jan 8, 2018
This pull request was closed.
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