We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e9edf commit 236b40fCopy full SHA for 236b40f
addon/lint/javascript-lint.js
@@ -51,7 +51,7 @@
51
// Convert to format expected by validation service
52
var hint = {
53
message: error.reason,
54
- severity: error.code.startsWith('W') ? "warning" : "error",
+ severity: error.code ? (error.code.startsWith('W') ? "warning" : "error") : "error",
55
from: CodeMirror.Pos(error.line - 1, start),
56
to: CodeMirror.Pos(error.line - 1, end)
57
};
0 commit comments