Skip to content

Commit

Permalink
CB-9366 log error.stack in cordova.js
Browse files Browse the repository at this point in the history
update from cordova-js@4.2.4
  • Loading branch information
Christopher J. Brody committed Jul 3, 2018
1 parent c961d77 commit 4e53cd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CordovaLib/cordova.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Platform: ios
// 61a51908ef1d6e96a92e9e65e3c7166a39192f29
// e040d9e9343d5f27dd4f67616660b33b92a82ff7
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand Down Expand Up @@ -307,6 +307,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;
}
Expand Down

0 comments on commit 4e53cd2

Please sign in to comment.