mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-04 00:13:20 +08:00
CB-9366 cordova.js log error.stack (cordova-js@4.2.4)
(Update cordova.js from cordova-js@4.2.4, using coho copy-js)
This commit is contained in:
parent
cf5a02ea0f
commit
5c334b6c10
3
bin/templates/project/assets/www/cordova.js
vendored
3
bin/templates/project/assets/www/cordova.js
vendored
@ -1,5 +1,5 @@
|
|||||||
// Platform: android
|
// Platform: android
|
||||||
// 61a51908ef1d6e96a92e9e65e3c7166a39192f29
|
// e040d9e9343d5f27dd4f67616660b33b92a82ff7
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
@ -307,6 +307,7 @@ var cordova = {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
var msg = 'Error in ' + (isSuccess ? 'Success' : 'Error') + ' callbackId: ' + callbackId + ' : ' + err;
|
var msg = 'Error in ' + (isSuccess ? 'Success' : 'Error') + ' callbackId: ' + callbackId + ' : ' + err;
|
||||||
console && console.log && console.log(msg);
|
console && console.log && console.log(msg);
|
||||||
|
console && console.log && err.stack && console.log(err.stack);
|
||||||
cordova.fireWindowEvent('cordovacallbackerror', { 'message': msg });
|
cordova.fireWindowEvent('cordovacallbackerror', { 'message': msg });
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user