Skip to content

Commit

Permalink
Report which execution profiling failed
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Jan 8, 2025
1 parent 3f0d29b commit 8f24dba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tooling/nargo_cli/src/cli/info_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,14 @@ fn profile_brillig_execution(
initial_witness,
&Bn254BlackBoxSolver,
&mut DefaultForeignCallBuilder::default().build(),
)?;
)
.map_err(|e| {
CliError::Generic(format!(
"failed to execute '{}': {}",
package.root_dir.to_string_lossy(),
e
))
})?;

let expression_width = get_target_width(package.expression_width, expression_width);

Expand Down

0 comments on commit 8f24dba

Please sign in to comment.