Skip to content

Commit

Permalink
Better error message when a release is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
catuhana committed Jun 29, 2024
1 parent 813f42a commit f0f6800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl NueCommand for CommandArguments {

println!("v{latest_version}");
} else if releases.is_empty() {
anyhow::bail!("Specified version not found.");
anyhow::bail!("No release found with given version or LTS code name.");
} else {
// TODO: if `--list-all` is passed, append `(not supported by current system)`
// aside the version string.
Expand Down

0 comments on commit f0f6800

Please sign in to comment.