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

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

brodybits closed pull request #161: CB-9366 Log error.stack (as it helps with 
diagnosing the source of the error)
URL: https://github.com/apache/cordova-js/pull/161
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/cordova.js b/src/cordova.js
index 6297c4e8..09d3451a 100644
--- a/src/cordova.js
+++ b/src/cordova.js
@@ -227,6 +227,7 @@ var cordova = {
         } catch (err) {
             var msg = 'Error in ' + (isSuccess ? 'Success' : 'Error') + ' 
callbackId: ' + callbackId + ' : ' + err;
             console && console.log && console.log(msg);
+            console && console.log && err.stack && console.log(err.stack);
             cordova.fireWindowEvent('cordovacallbackerror', { 'message': msg 
});
             throw err;
         }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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: cordova-js
>    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
(v7.6.3#76005)

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

Reply via email to