Skip to content

Commit

Permalink
libtest: Improve error when missing -Zunstable-options
Browse files Browse the repository at this point in the history
"only accepted on the nightly compiler" is misleading when this *is* nightly.
  • Loading branch information
jyn514 committed May 24, 2023
1 parent 70db836 commit 9314ed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/test/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ fn get_format(
Some("terse") => OutputFormat::Terse,
Some("json") => {
if !allow_unstable {
return Err("The \"json\" format is only accepted on the nightly compiler".into());
return Err("The \"json\" format is only accepted on the nightly compiler with -Z unstable-options".into());
}
OutputFormat::Json
}
Some("junit") => {
if !allow_unstable {
return Err("The \"junit\" format is only accepted on the nightly compiler".into());
return Err("The \"junit\" format is only accepted on the nightly compiler with -Z unstable-options".into());
}
OutputFormat::Junit
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
error: The "json" format is only accepted on the nightly compiler
error: The "json" format is only accepted on the nightly compiler with -Z unstable-options

0 comments on commit 9314ed0

Please sign in to comment.