Skip to content

Commit

Permalink
Merge pull request #17 from nvnx7/main
Browse files Browse the repository at this point in the history
print stderr from compilation
  • Loading branch information
alrubio authored Sep 14, 2023
2 parents a870064 + 276e29b commit 7f13f84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion c/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ async function compile (baseName, fileName, options) {
let b = await exec("circom " + flags + fileName);
if (options.verbose) {
console.log(b.stdout);
}
}
if (b.stderr) {
console.error(b.stderr);
}
} catch (e) {
assert(false,
"circom compiler error \n" + e);
Expand Down
4 changes: 2 additions & 2 deletions wasm/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ async function compile (fileName, options) {
if (options.verbose) {
console.log(b.stdout);
}
if (b.stderr != '') {
throw(b.stderr);
if (b.stderr) {
console.error(b.stderr);
}
} catch (e) {
assert(false,
Expand Down

0 comments on commit 7f13f84

Please sign in to comment.