You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2018/07/10 16:42:16 UTC

[cordova-browser] 01/01: CB-9366 log error.stack in cordova.js (5.0.x)

This is an automated email from the ASF dual-hosted git repository.

brodybits pushed a commit to branch 5.0.x
in repository https://gitbox.apache.org/repos/asf/cordova-browser.git

commit ef012e389996d27f580063a7b271f2ae08c484e9
Author: Christopher J. Brody <ch...@gmail.com>
AuthorDate: Tue Jul 3 22:53:09 2018 -0400

    CB-9366 log error.stack in cordova.js (5.0.x)
    
    (update JS snapshot from cordova-js@4.2.4 via coho)
---
 cordova-lib/cordova.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cordova-lib/cordova.js b/cordova-lib/cordova.js
index 1509332..2081f56 100644
--- a/cordova-lib/cordova.js
+++ b/cordova-lib/cordova.js
@@ -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
@@ -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;
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org