Skip to content

Commit

Permalink
chore: Improve error reporting in profiler (#7712)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant authored Aug 1, 2024
1 parent 67efb8b commit 628782a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions noir/noir-repo/tooling/profiler/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
2 changes: 1 addition & 1 deletion noir/noir-repo/tooling/profiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() {
}

if let Err(report) = cli::start_cli() {
eprintln!("{report}");
eprintln!("{report:?}");
std::process::exit(1);
}
}

0 comments on commit 628782a

Please sign in to comment.