Skip to content

Commit

Permalink
CB-9366 log error.stack in cordova.js (5.0.x)
Browse files Browse the repository at this point in the history
(update JS snapshot from cordova-js@4.2.4 via coho)
  • Loading branch information
Christopher J. Brody committed Jul 10, 2018
1 parent 03217a1 commit ef012e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cordova-lib/cordova.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Platform: browser
// 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 ef012e3

Please sign in to comment.