Explorar o código

Fix backtrace not being displayed on errors

Gaël Métais %!s(int64=11) %!d(string=hai) anos
pai
achega
cefec924ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             });
         }