Adding a console.log statement to debug errors in callback

This commit is contained in:
Joe Bowser 2010-10-25 15:01:17 -07:00
parent f63b8140af
commit 8c624c7f22

View File

@ -579,6 +579,8 @@ PhoneGap.JSCallback = function() {
var t = eval(msg); var t = eval(msg);
} }
catch (e) { catch (e) {
// If we're getting an error here, seeing the message will help in debugging
console.log("Message from Server: " + msg");
console.log("JSCallback Error: "+e); console.log("JSCallback Error: "+e);
} }
}, 1); }, 1);