cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-9366) Log error.stack when a call to a plugin throws an exception
Date Wed, 15 Jul 2015 14:51:04 GMT


ASF GitHub Bot commented on CB-9366:

Github user nikhilkh commented on the pull request:
    What's the downside of adding this? This is really an exceptional scenario and should
not hit commonly to clutter console log with ugly stack traces. Also, rethrowing the error
will reset it's stack property - depending on which runtime and platform you are using and
hence. window.onerror might not get the actual stack that caused the error.
    Putting it in console.log makes sure it shows in ADB logcat, Windows debug logs - hence,
it makes it easier for people to root cause such issues.

> Log error.stack when a call to a plugin throws an exception
> -----------------------------------------------------------
>                 Key: CB-9366
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaJS
>    Affects Versions: Master
>            Reporter: Nikhil Khandelwal
>            Assignee: Nikhil Khandelwal
>            Priority: Minor
> This can help in isolating the cause of the error.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message