Adds better stack trace to error messages #67

Merged
merged 1 commit into from Dec 13, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −1
Split
@@ -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;