Browse Source

Fix backtrace not being displayed on errors

Gaël Métais 11 years ago
parent
commit
cefec924ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      phantomas_custom/modules/jsErrYLT/jsErrYLT.js

+ 1 - 1
phantomas_custom/modules/jsErrYLT/jsErrYLT.js

@@ -14,7 +14,7 @@ exports.module = function(phantomas) {
 
         if(Array.isArray(trace)) {
             trace.forEach(function(entry) {
-                ret.push((entry.function ? entry.function + '(): ' : 'unknown fn: ') + (entry.sourceURL || entry.file) + ' @ ' + entry.line);
+                ret.push((entry.function ? entry.function + ' ' : '') + (entry.sourceURL || entry.file) + ':' + entry.line);
             });
         }