arnaucube
arnaucube/circomPublic Self-hosted repository
Merge pull request #41 from k06a/fix/error-message

Fix error message, for most IDEs recognises as URI to file row and column
Jordi Baylina jordi@baylina.cat
Mon, 16 Sep 2019 22:10:12 +0200
commit

230894921eb4729227d55b0ae61955c2f77118ce

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