Skip to content

Commit 9db467e

Browse files
pavelvasevChALkeR
authored andcommitted
keep file path information in exceptions during qml parses
PR-URL: qmlweb/qmlweb#205 Reviewed-By: Сковорода Никита Андреевич <[email protected]>
1 parent 0552e1c commit 9db467e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser.js

+1
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ function QMLParseError(message, line, col, pos, comment) {
276276
this.pos = pos;
277277
this.comment = comment ? comment : "";
278278
this.message = message + " (line: " + line + ", col: " + col + ", pos: " + pos + ")" + "\n" + comment + "\n"
279+
this.file = nowParsingFile;
279280
try {
280281
({})();
281282
} catch(ex) {

0 commit comments

Comments
 (0)