Fix backtrace not being displayed on errors

This commit is contained in:
Gaël Métais
2014-08-20 12:07:58 +02:00
parent 82a1f4f934
commit cefec924ce
@@ -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);
});
}