comiler errors handled

This commit is contained in:
alrubio
2021-10-06 14:33:19 +02:00
parent 30f12bf326
commit 8580d8cc0f
2 changed files with 5 additions and 3 deletions

View File

@@ -52,7 +52,9 @@ async function compile (fileName, options) {
if (options.json) flags += "--json ";
if (options.output) flags += "--output " + options.output + " ";
await exec("circom " + flags + fileName);
b = await exec("circom " + flags + fileName);
assert(b.stderr == "",
"circom compiler error \n" + b.stderr);
}
class WasmTester {