Fix warning detection.

pull/1/head
chriseth 8 years ago
parent e63f127bcd
commit 4e639f452c
  1. 2
      src/app/utils.js

@ -19,7 +19,7 @@ function fileNameFromKey (key) {
}
function errortype (message) {
return message.match(/^.*:[0-9]*:[0-9]* Warning: /) ? 'warning' : 'error'
return message.match(/^(.*:[0-9]*:[0-9]* )?Warning: /) ? 'warning' : 'error'
}
module.exports = {

Loading…
Cancel
Save