Tweak error messages a little

This commit is contained in:
notgne2 2020-10-30 18:07:04 -07:00
parent 5ba58e0328
commit 1cbf7ef0ed
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8
2 changed files with 4 additions and 4 deletions

View File

@ -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(())

View File

@ -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(())