From 628782ab6e259bd80ac2b72296b858ccb0a15154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rodr=C3=ADguez?= Date: Thu, 1 Aug 2024 23:42:41 +0200 Subject: [PATCH] chore: Improve error reporting in profiler (#7712) --- noir/noir-repo/tooling/profiler/src/cli/mod.rs | 3 --- noir/noir-repo/tooling/profiler/src/main.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/noir/noir-repo/tooling/profiler/src/cli/mod.rs b/noir/noir-repo/tooling/profiler/src/cli/mod.rs index 4c2503fbe4f..7cfc6ed7c9e 100644 --- a/noir/noir-repo/tooling/profiler/src/cli/mod.rs +++ b/noir/noir-repo/tooling/profiler/src/cli/mod.rs @@ -30,7 +30,4 @@ pub(crate) fn start_cli() -> eyre::Result<()> { ProfilerCommand::GatesFlamegraph(args) => gates_flamegraph_cmd::run(args), ProfilerCommand::OpcodesFlamegraph(args) => opcodes_flamegraph_cmd::run(args), } - .map_err(|err| eyre::eyre!("{}", err))?; - - Ok(()) } diff --git a/noir/noir-repo/tooling/profiler/src/main.rs b/noir/noir-repo/tooling/profiler/src/main.rs index 215feb0a4e7..b0b42e6ee41 100644 --- a/noir/noir-repo/tooling/profiler/src/main.rs +++ b/noir/noir-repo/tooling/profiler/src/main.rs @@ -33,7 +33,7 @@ fn main() { } if let Err(report) = cli::start_cli() { - eprintln!("{report}"); + eprintln!("{report:?}"); std::process::exit(1); } }