Fix error message, for most IDEs recognises as URI to file row and column
Anton Bukov k06aaa@gmail.com
Sun, 15 Sep 2019 22:57:18 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gencode.js
→
src/gencode.js
@@ -422,7 +422,7 @@ const a = gen(ctx, ast.values[0]);
if (ctx.error) return; const b = gen(ctx, ast.values[1]); if (ctx.error) return; - const strErr = ast.fileName +": "+ast.first_line; + const strErr = ast.fileName + ":" + ast.first_line + ":" + ast.first_column; return `ctx.assert(${a}, ${b}, \"${strErr}\")`; }