We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a58eb3 + 06cc12a commit e8674fcCopy full SHA for e8674fc
lib/ace/mode/yaml_worker.js
@@ -34,9 +34,11 @@ oop.inherits(YamlWorker, Mirror);
34
return;
35
}
36
37
+ // error.mark is not always defined, if undefined we default to displaying the error at the top row of the document.
38
+ var markDefined = !!error.mark;
39
errors.push({
- row: error.mark.line,
- column: error.mark.column,
40
+ row: markDefined ? error.mark.line : 0,
41
+ column: markDefined ? error.mark.column : 0,
42
text: error.reason,
43
type: 'error',
44
raw: error
0 commit comments