Skip to content

Commit

Permalink
Give a better error message when x.py uses the wrong stage for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Sep 16, 2020
1 parent 5fae569 commit be37265
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,13 @@ impl Config {
| Subcommand::Build { .. }
| Subcommand::Bench { .. }
| Subcommand::Dist { .. }
| Subcommand::Install { .. } => assert_eq!(config.stage, 2),
| Subcommand::Install { .. } => {
assert_eq!(
config.stage, 2,
"x.py should be run with `--stage 2` on CI, but was run with `--stage {}`",
config.stage,
);
}
Subcommand::Clean { .. }
| Subcommand::Check { .. }
| Subcommand::Clippy { .. }
Expand Down

0 comments on commit be37265

Please sign in to comment.