Skip to content

Commit

Permalink
[pipelines] print error explicitly at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed May 30, 2024
1 parent ea6dd73 commit b26d873
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion settlement-pipelines/src/reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ pub async fn with_reporting<T: PrintReportable>(
// when Ok is returned we consult the reality with report handler
Ok(_) => CliResult(report_handler.finalize()),
// when main returned some error we pass it to terminate with it
Err(err) => CliResult(Err(err)),
Err(err) => {
println!("ERROR: {:?}", err);
CliResult(Err(err))
}
}
}

0 comments on commit b26d873

Please sign in to comment.