Skip to content

Commit e1a2ab5

Browse files
committed
libtest: Improve error when missing -Zunstable-options
"only accepted on the nightly compiler" is misleading when this *is* nightly.
1 parent 9a2c316 commit e1a2ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,13 @@ fn get_format(
404404
Some("terse") => OutputFormat::Terse,
405405
Some("json") => {
406406
if !allow_unstable {
407-
return Err("The \"json\" format is only accepted on the nightly compiler".into());
407+
return Err("The \"json\" format is only accepted on the nightly compiler with -Z unstable-options".into());
408408
}
409409
OutputFormat::Json
410410
}
411411
Some("junit") => {
412412
if !allow_unstable {
413-
return Err("The \"junit\" format is only accepted on the nightly compiler".into());
413+
return Err("The \"junit\" format is only accepted on the nightly compiler with -Z unstable-options".into());
414414
}
415415
OutputFormat::Junit
416416
}

0 commit comments

Comments
 (0)