Actually try to build working code

This commit is contained in:
Ana Hobden 2022-11-08 13:53:56 -08:00
parent 6ef10ff50e
commit 4ea3cd221d

View file

@ -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);
}
}