CB-9366 log error.stack in cordova.js

(update JS snapshot from cordova-js@4.2.4 via coho)
This commit is contained in:
Christopher J. Brody 2018-07-04 05:37:26 -04:00
parent 0bd3309323
commit efb387b6ee

View File

@ -1,5 +1,5 @@
// Platform: android
// f5a790b434f6ac050da55c57e5fd5770f5a16512
// e040d9e9343d5f27dd4f67616660b33b92a82ff7
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@ -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;
}