From c0bf996d2e9d833378abe9ce23da0997e7905f6f Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 23 Mar 2024 01:26:17 +0100 Subject: [PATCH] Add safety note in cli --- src/cli/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 4021212..2b80002 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -35,7 +35,9 @@ impl Cli { "Aftman loaded" ); - // 2. Run the subcommand and capture the result + // 2. Run the subcommand and capture the result - note that we + // do not (!!!) use the question mark operator here, because we + // want to save our data below even if the subcommand fails. let start_command = Instant::now(); let result = self.subcommand.run(&home).await; tracing::trace!(