Permalink
Browse files

Merge pull request #67 from sukima/better_errormessages

Adds better stack trace to error messages
  • Loading branch information...
2 parents d29c35d + 1164588 commit 0cdc68438a6b04d8deaf5d34e2dbac5402f496c2 @azicchetti committed Dec 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/jquery.mobile.router.js
@@ -38,7 +38,10 @@ $(document).bind("mobileinit",function(){
var DEBUG=true;
function debug(err){
- if (DEBUG) console.log(err);
+ if (DEBUG) {
+ console.log(err);
+ if (err.stack) console.log(err.stack)
+ }
}
var previousUrl=null, nextUrl=null, ignoreNext=false;

0 comments on commit 0cdc684

Please sign in to comment.