Skip to content

Commit 9e60e7e

Browse files
authored
Rollup merge of #82211 - henryboisdequin:make-setup-msgs-better, r=jyn514
make `suggest_setup` help messages better When I first built the compiler and didn't create a `config.toml.example`, the following was emitted: ``` help: consider running `x.py setup` or copying `config.toml.example` ``` I ran `x.py setup` but got an error so in this PR I made the help messages a little clearer.
2 parents fe15494 + e13f25c commit 9e60e7e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/bootstrap/bin/main.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ fn main() {
2222
let suggest_setup = !config.config.exists() && !matches!(config.cmd, Subcommand::Setup { .. });
2323
if suggest_setup {
2424
println!("warning: you have not made a `config.toml`");
25-
println!("help: consider running `x.py setup` or copying `config.toml.example`");
25+
println!(
26+
"help: consider running `./x.py setup` or copying `config.toml.example` by running \
27+
`cp config.toml.example config.toml`"
28+
);
2629
} else if let Some(suggestion) = &changelog_suggestion {
2730
println!("{}", suggestion);
2831
}
@@ -31,7 +34,10 @@ fn main() {
3134

3235
if suggest_setup {
3336
println!("warning: you have not made a `config.toml`");
34-
println!("help: consider running `x.py setup` or copying `config.toml.example`");
37+
println!(
38+
"help: consider running `./x.py setup` or copying `config.toml.example` by running \
39+
`cp config.toml.example config.toml`"
40+
);
3541
} else if let Some(suggestion) = &changelog_suggestion {
3642
println!("{}", suggestion);
3743
}

0 commit comments

Comments
 (0)