Make self-test errors a warning only (#587)
This commit is contained in:
parent
ff20fc04b3
commit
55cbf41a00
2 changed files with 4 additions and 3 deletions
|
@ -7,6 +7,7 @@ use uninstall::Uninstall;
|
||||||
mod self_test;
|
mod self_test;
|
||||||
use self_test::SelfTest;
|
use self_test::SelfTest;
|
||||||
|
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
#[derive(Debug, clap::Subcommand)]
|
#[derive(Debug, clap::Subcommand)]
|
||||||
pub enum NixInstallerSubcommand {
|
pub enum NixInstallerSubcommand {
|
||||||
Plan(Plan),
|
Plan(Plan),
|
||||||
|
|
|
@ -228,7 +228,7 @@ impl InstallPlan {
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
Err(err)
|
tracing::warn!("{err:?}")
|
||||||
} else {
|
} else {
|
||||||
#[cfg(feature = "diagnostics")]
|
#[cfg(feature = "diagnostics")]
|
||||||
if let Some(diagnostic_data) = &self.diagnostic_data {
|
if let Some(diagnostic_data) = &self.diagnostic_data {
|
||||||
|
@ -240,10 +240,10 @@ impl InstallPlan {
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[tracing::instrument(level = "debug", skip_all)]
|
#[tracing::instrument(level = "debug", skip_all)]
|
||||||
pub async fn describe_uninstall(&self, explain: bool) -> Result<String, NixInstallerError> {
|
pub async fn describe_uninstall(&self, explain: bool) -> Result<String, NixInstallerError> {
|
||||||
|
|
Loading…
Reference in a new issue