parent
35f6d37ce2
commit
9e84157aa8
2 changed files with 11 additions and 3 deletions
|
|
@ -25,10 +25,13 @@ oop.inherits(JavaScriptWorker, Mirror);
|
|||
} catch(e) {
|
||||
// console.log("narcissus")
|
||||
// console.log(e);
|
||||
var chunks = e.message.split(":")
|
||||
var message = chunks.pop().trim();
|
||||
var lineNumber = parseInt(chunks.pop().trim()) - 1;
|
||||
this.sender.emit("narcissus", {
|
||||
row: e.lineno-1,
|
||||
row: lineNumber,
|
||||
column: null, // TODO convert e.cursor
|
||||
text: e.message,
|
||||
text: message,
|
||||
type: "error"
|
||||
});
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue