From 4ea3cd221d186eb6dc7f3e92d34a3d31d23bd91f Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Tue, 8 Nov 2022 13:53:56 -0800 Subject: [PATCH] Actually try to build working code --- src/cli/subcommand/install.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/subcommand/install.rs b/src/cli/subcommand/install.rs index 4d544d3..b208416 100644 --- a/src/cli/subcommand/install.rs +++ b/src/cli/subcommand/install.rs @@ -60,14 +60,15 @@ impl CommandExecute for Install { } if let Err(err) = plan.install().await { - tracing::error!("{:?}", eyre!(err)); + let error = eyre!(err).wrap_err("Install failure"); if !no_confirm { + tracing::error!("{:?}", error); if !interaction::confirm(plan.describe_revert(explain)).await? { interaction::clean_exit_with_message("Okay, didn't do anything! Bye!").await; } plan.revert().await? } else { - return Err(err).wrap_err("Install failure"); + return Err(error); } }