Skip to content

Commit be37265

Browse files
committed
Give a better error message when x.py uses the wrong stage for CI
1 parent 5fae569 commit be37265

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/bootstrap/config.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,13 @@ impl Config {
616616
| Subcommand::Build { .. }
617617
| Subcommand::Bench { .. }
618618
| Subcommand::Dist { .. }
619-
| Subcommand::Install { .. } => assert_eq!(config.stage, 2),
619+
| Subcommand::Install { .. } => {
620+
assert_eq!(
621+
config.stage, 2,
622+
"x.py should be run with `--stage 2` on CI, but was run with `--stage {}`",
623+
config.stage,
624+
);
625+
}
620626
Subcommand::Clean { .. }
621627
| Subcommand::Check { .. }
622628
| Subcommand::Clippy { .. }

0 commit comments

Comments
 (0)