From cbbd24989207f1a8df7226f2ae08ccf15c5dad45 Mon Sep 17 00:00:00 2001 From: Naveen Sahu <42338831+theNvN@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:09:44 +0530 Subject: [PATCH] print stderr from compilation --- c/tester.js | 5 +++++ wasm/tester.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/c/tester.js b/c/tester.js index 26922ad..c5c6fa2 100644 --- a/c/tester.js +++ b/c/tester.js @@ -82,6 +82,11 @@ async function compile (baseName, fileName, options) { if (options.verbose) { console.log(b.stdout); } + + if (b.stderr) { + console.error(b.stderr); + } + } catch (e) { assert(false, "circom compiler error \n" + e); diff --git a/wasm/tester.js b/wasm/tester.js index 1609503..b96e7d0 100644 --- a/wasm/tester.js +++ b/wasm/tester.js @@ -87,6 +87,11 @@ async function compile (fileName, options) { if (options.verbose) { console.log(b.stdout); } + + if (b.stderr) { + console.error(b.stderr); + } + } catch (e) { assert(false, "circom compiler error \n" + e);