Skip to content

Commit

Permalink
Merge pull request #100 from smoelius/error-message
Browse files Browse the repository at this point in the history
Try to make error message more clear
  • Loading branch information
Shnatsel authored Dec 18, 2024
2 parents ede428b + c8150dd commit 06b84f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcommands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn update(max_age: std::time::Duration) -> Result<(), anyhow::Error> {
DownloadState::Expired => {
eprintln!("Successfully updated to the newest daily data dump.");
}
DownloadState::Stale => bail!("Downloaded latest daily data dump.\n Warning: it matches the previous version that was considered outdated."),
DownloadState::Stale => bail!("Latest daily data dump matches the previous version, which was considered outdated."),
},
Err(error) => bail!("Could not update to the latest daily data dump!\n{}", error)
}
Expand Down

0 comments on commit 06b84f9

Please sign in to comment.