From a0bb2db12b4ef10307f940238aa89496f0bcbc71 Mon Sep 17 00:00:00 2001 From: klacointe Date: Mon, 24 Mar 2014 15:38:20 +0100 Subject: [PATCH] =?UTF-8?q?Oups=E2=80=A6=20Fix=20code=20ordering=20for=20s?= =?UTF-8?q?procket=20stacktrace=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/notifier.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/javascripts/notifier.js b/public/javascripts/notifier.js index e9f8cbf5f..5c7bddf57 100644 --- a/public/javascripts/notifier.js +++ b/public/javascripts/notifier.js @@ -1150,10 +1150,6 @@ printStackTrace.implementation.prototype = { continue; } - if (stacktrace[i].indexOf('@') === -1) { - stacktrace[i] += '@unsupported.js'; - } - // Special case for sprocket coffee stacktrace: // "Function.foo (http://host/file.js?body=1:666:42)" becomes "Function.foo @http://host/file.js?body=1:666" if (stacktrace[i].match(/\([^\s]+:(\d+):(\d+)\)$/)) { @@ -1161,6 +1157,10 @@ printStackTrace.implementation.prototype = { continue; } + if (stacktrace[i].indexOf('@') === -1) { + stacktrace[i] += '@unsupported.js'; + } + stacktrace[i] += ':0'; }