Commit a0bb2db12b4ef10307f940238aa89496f0bcbc71

Authored by klacointe
1 parent 15102dff
Exists in master and in 1 other branch production

Oups… Fix code ordering for sprocket stacktrace…

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
public/javascripts/notifier.js
... ... @@ -1150,10 +1150,6 @@ printStackTrace.implementation.prototype = {
1150 1150 continue;
1151 1151 }
1152 1152  
1153   - if (stacktrace[i].indexOf('@') === -1) {
1154   - stacktrace[i] += '@unsupported.js';
1155   - }
1156   -
1157 1153 // Special case for sprocket coffee stacktrace:
1158 1154 // "Function.foo (http://host/file.js?body=1:666:42)" becomes "Function.foo @http://host/file.js?body=1:666"
1159 1155 if (stacktrace[i].match(/\([^\s]+:(\d+):(\d+)\)$/)) {
... ... @@ -1161,6 +1157,10 @@ printStackTrace.implementation.prototype = {
1161 1157 continue;
1162 1158 }
1163 1159  
  1160 + if (stacktrace[i].indexOf('@') === -1) {
  1161 + stacktrace[i] += '@unsupported.js';
  1162 + }
  1163 +
1164 1164 stacktrace[i] += ':0';
1165 1165 }
1166 1166  
... ...