diff options
author | notgne2 | 2020-10-30 18:07:04 -0700 |
---|---|---|
committer | notgne2 | 2020-10-30 18:07:04 -0700 |
commit | 1cbf7ef0ed749ee79fd9dc1e870a4e19be55f3ef (patch) | |
tree | 07f3d5accbdec27c7c8d483d0f996d34e13973fa /src | |
parent | 5ba58e03283f4fe5f34df414a33944530ce2b943 (diff) |
Tweak error messages a little
Diffstat (limited to '')
-rw-r--r-- | src/activate.rs | 2 | ||||
-rw-r--r-- | 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<dyn std::error::Error>> { .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<bool, std::io::Error> { #[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<i32>), } @@ -540,7 +540,7 @@ async fn run() -> Result<(), RunError> { async fn main() -> Result<(), Box<dyn std::error::Error>> { match run().await { Ok(()) => (), - Err(err) => good_panic!("An error: {}", err), + Err(err) => good_panic!("{}", err), } Ok(()) |