arnaucube
arnaucube/circomPublic Self-hosted repository
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
commit

64029e1842605afc39e0bd40ffa16c4cdbd09f1b

parent

700412f23d35972f8fad611adeb4868b850a9cb5

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}\")`; }