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

allow for increased granularity in warning control #920

Closed
cognisent opened this issue Dec 16, 2015 · 1 comment
Closed

allow for increased granularity in warning control #920

cognisent opened this issue Dec 16, 2015 · 1 comment

Comments

@cognisent
Copy link

Following on from my my comments in #903, could we extend the capabilities of Promise.config to accept, in addition to this...

Promise.config({
    warnings: true|false
});

...perhaps something like this...

Promise.config({
    warnings: {
        typeone: true|false,
        typetwo: true|false,
        typethree: true|false
    }
});
// I'll leave the names up to you, if you decide to do this.

I would like to leave Warning: .then() only accepts functions and Warning: a promise was rejected with a non-error turned on, but will generally need to have Warning: a promise was created in a handler but none were returned from it turned off as it happens too frequently (due to external issues).

@cognisent
Copy link
Author

Awesome! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants