[
https://issues.apache.org/jira/browse/CB-9366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628760#comment-14628760
]
ASF GitHub Bot commented on CB-9366:
------------------------------------
Github user nikhilkh commented on the pull request:
https://github.com/apache/cordova-js/pull/118#issuecomment-121752375
If you have multiple calls to cordova methods and one of them might be
missing a callback or passing another incorrect argument (like in a scenario
similar to the recent `new Media()` bug) a call stack tells you in your code
the line which might have resulting in that exception causing your app to
crash. The bug fixed in
https://github.com/apache/cordova-plugin-media/commit/5f8738c5267be70562df9714e6f3971790b37d19
would have been much easier to identify from buildBot [ADB
logs](https://ci.apache.org/builders/cordova-android-win/builds/31/steps/gathering-logs/logs/stdio)
if we had a stack. Instead, I had to get into the debugger to identify the
issue.
> 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]