From 1cbf7ef0ed749ee79fd9dc1e870a4e19be55f3ef Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 30 Oct 2020 18:07:04 -0700 Subject: Tweak error messages a little --- src/activate.rs | 2 +- src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/activate.rs b/src/activate.rs index aa63b6e..a500a32 100644 --- a/src/activate.rs +++ b/src/activate.rs @@ -403,7 +403,7 @@ async fn main() -> Result<(), Box> { .await { Ok(()) => (), - Err(err) => good_panic!("An error: {}", err), + Err(err) => good_panic!("{}", err), } Ok(()) diff --git a/src/main.rs b/src/main.rs index 0dd7d45..78bc933 100644 --- a/src/main.rs +++ b/src/main.rs @@ -235,9 +235,9 @@ async fn test_flake_support() -> Result { #[derive(Error, Debug)] enum CheckDeploymentError { - #[error("Failed to execute nix eval command: {0}")] + #[error("Failed to execute Nix checking command: {0}")] NixCheckError(#[from] std::io::Error), - #[error("Evaluation resulted in a bad exit code: {0:?}")] + #[error("Nix checking command resulted in a bad exit code: {0:?}")] NixCheckExitError(Option), } @@ -540,7 +540,7 @@ async fn run() -> Result<(), RunError> { async fn main() -> Result<(), Box> { match run().await { Ok(()) => (), - Err(err) => good_panic!("An error: {}", err), + Err(err) => good_panic!("{}", err), } Ok(()) -- cgit v1.2.3