-
Notifications
You must be signed in to change notification settings - Fork 407
Promise rejection logs two error messages in the console #806
Comments
@jahtalab, sure, it should only logging one message, I will check it. |
This is the piece of code that does the logging: https://github.com/angular/zone.js/blob/master/lib/common/promise.ts#L21
I'm guessing that the first |
@jahtalab , it is not a debug code, the first |
It seems to me logging I think in this case it should behave like the native |
@jahtalab , yes, I understand your meaning, I am not sure which is the better solution, output there are way to not output the console.log or even output your own format.
so because we have several ways to let app define how to handle And I am not sure about the |
The code to disable it should be: (At least with Angular 5, it may have been correct before)
|
@Cyral , thank you, my typo |
What is the reason for logging two error messages in the console when a promise is rejected?
Can it be merged together to avoid cluttering the console?
The text was updated successfully, but these errors were encountered: