[ 
https://issues.apache.org/jira/browse/CB-9366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628175#comment-14628175
 ] 

ASF GitHub Bot commented on CB-9366:
------------------------------------

Github user nikhilkh commented on the pull request:

    https://github.com/apache/cordova-js/pull/118#issuecomment-121640154
  
    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: https://issues.apache.org/jira/browse/CB-9366
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to