Skip to content

Commit 870efdf

Browse files
committed
Merge #114: simplify error message output for unsupported version output
a5efb11 chore(verify): update error message for unsupported versions (GideonBature) Pull request description: #### Revised the output for unrecognised versions to: ```shell verify v1234 Unrecognised version: v1234 (supported versions: v17 - v28) ``` This removes the noise of listing all versions by displaying a concise version range. Closes #65 ACKs for top commit: AdamuAbba: ACK [#a5efb11](a5efb11); successfully ran a local test. tcharding: ACK a5efb11 Tree-SHA512: 32dc7b930b20125ab8264a946a127d5d46104d75843cf95eae7693c569e6be005efb9bef902fcc01b51d960abd7f8ffc4c0083aa9c0690f218e0a5ce3c5bbb85
2 parents 2643b9d + a5efb11 commit 870efdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

verify/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ fn main() -> Result<()> {
4343
} else if let Ok(v) = version.parse::<Version>() {
4444
verify_version(v, test_output, quiet)?;
4545
} else {
46-
eprint!("Unrecognised version: {} (supported versions:", version);
47-
for version in VERSIONS {
48-
eprint!(" {}", version);
49-
}
46+
eprint!("Unrecognised version: {} (supported versions: ", version);
47+
eprint!("{} - {}", VERSIONS[0], VERSIONS[VERSIONS.len() - 1]);
5048
eprintln!(")");
5149
process::exit(1);
5250
}

0 commit comments

Comments
 (0)