浏览代码

Fix backtrace not being displayed on errors

Gaël Métais 11 年之前
父节点
当前提交
cefec924ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
             });
         }