Skip to content

Commit 43797f6

Browse files
committed
Print timings even if reconstruction returns error
1 parent 1a75679 commit 43797f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

splashsurf/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ fn run_splashsurf() -> Result<(), anyhow::Error> {
8787
logging::log_program_info();
8888

8989
// Delegate to subcommands
90-
match &cmd_args.subcommand {
91-
Subcommand::Reconstruct(cmd_args) => reconstruction::reconstruct_subcommand(cmd_args)?,
92-
Subcommand::Convert(cmd_args) => convert::convert_subcommand(cmd_args)?,
93-
}
90+
let result = match &cmd_args.subcommand {
91+
Subcommand::Reconstruct(cmd_args) => reconstruction::reconstruct_subcommand(cmd_args),
92+
Subcommand::Convert(cmd_args) => convert::convert_subcommand(cmd_args),
93+
};
9494

9595
// Write coarse_prof stats using log::info
9696
info!("Timings:");
@@ -114,7 +114,7 @@ fn run_splashsurf() -> Result<(), anyhow::Error> {
114114
chrono::Local::now().to_rfc3339_opts(chrono::SecondsFormat::Micros, false)
115115
);
116116

117-
Ok(())
117+
result
118118
}
119119

120120
#[derive(Copy, Clone, Debug)]

0 commit comments

Comments
 (0)