From cefec924ce7d07db4726c4cc1445328fcf1f58ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Wed, 20 Aug 2014 12:07:58 +0200 Subject: [PATCH] Fix backtrace not being displayed on errors --- phantomas_custom/modules/jsErrYLT/jsErrYLT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phantomas_custom/modules/jsErrYLT/jsErrYLT.js b/phantomas_custom/modules/jsErrYLT/jsErrYLT.js index 53f0adb..e9975e2 100644 --- a/phantomas_custom/modules/jsErrYLT/jsErrYLT.js +++ b/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); }); }