Skip to content

Commit a5efb11

Browse files
committed
chore(verify): update error message for unsupported versions
1 parent 2643b9d commit a5efb11

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)