From 55cbf41a007aa0f230bb3744c34867b460be4a0a Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Tue, 25 Jul 2023 11:17:52 -0700 Subject: [PATCH] Make self-test errors a warning only (#587) --- src/cli/subcommand/mod.rs | 1 + src/plan.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cli/subcommand/mod.rs b/src/cli/subcommand/mod.rs index 466bbfc..356ed57 100644 --- a/src/cli/subcommand/mod.rs +++ b/src/cli/subcommand/mod.rs @@ -7,6 +7,7 @@ use uninstall::Uninstall; mod self_test; use self_test::SelfTest; +#[allow(clippy::large_enum_variant)] #[derive(Debug, clap::Subcommand)] pub enum NixInstallerSubcommand { Plan(Plan), diff --git a/src/plan.rs b/src/plan.rs index 62e1809..ee35498 100644 --- a/src/plan.rs +++ b/src/plan.rs @@ -228,7 +228,7 @@ impl InstallPlan { .await?; } - Err(err) + tracing::warn!("{err:?}") } else { #[cfg(feature = "diagnostics")] if let Some(diagnostic_data) = &self.diagnostic_data { @@ -240,9 +240,9 @@ impl InstallPlan { ) .await?; } - - Ok(()) } + + Ok(()) } #[tracing::instrument(level = "debug", skip_all)]