aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/activate.rs2
-rw-r--r--src/main.rs6
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(())