Commit 4e639f45 authored by chriseth's avatar chriseth

Fix warning detection.

parent e63f127b
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment