do not show error for empty json files
This commit is contained in:
parent
1a70ef15e2
commit
3ef6bc2097
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ oop.inherits(JsonWorker, Mirror);
|
|||
var value = this.doc.getValue();
|
||||
|
||||
try {
|
||||
var result = parse(value);
|
||||
if (value)
|
||||
parse(value);
|
||||
} catch (e) {
|
||||
var pos = this.doc.indexToPosition(e.at-1);
|
||||
this.sender.emit("error", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue