[ https://issues.apache.org/jira/browse/CB-9366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15131057#comment-15131057 ]
ASF GitHub Bot commented on CB-9366: ------------------------------------ Github user jimmont commented on the pull request: https://github.com/apache/cordova-js/pull/118#issuecomment-179440047 [This try-catch](https://github.com/apache/cordova-js/blob/master/src/cordova.js#L228) for callbacks is a real pain. Having access to errors as they occur is highly desirable. And there appears to be [a logic error here](https://github.com/apache/cordova-js/blob/master/src/cordova.js#L223) where callbacks are never deleted if they throw an error. Isn't managing errors a responsibility outside of `self.cordova`? Just started looking at this javascript after a *lot* of problematic worker debugging. > 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: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org