From 64029e1842605afc39e0bd40ffa16c4cdbd09f1b Mon Sep 17 00:00:00 2001 From: Anton Bukov Date: Sun, 15 Sep 2019 22:57:18 +0300 Subject: [PATCH] Fix error message, for most IDEs recognises as URI to file row and column --- src/gencode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gencode.js b/src/gencode.js index 62f6020..fa3d683 100644 --- a/src/gencode.js +++ b/src/gencode.js @@ -422,7 +422,7 @@ function genConstrain(ctx, ast) { 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}\")`; }