Skip to content

Commit 3f892f8

Browse files
committed
Clarify an x fmt error.
1 parent 7ebd2bd commit 3f892f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/build_steps/format.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ fn print_paths(verb: &str, adjective: Option<&str>, paths: &[String]) {
118118

119119
pub fn format(build: &Builder<'_>, check: bool, all: bool, paths: &[PathBuf]) {
120120
if !paths.is_empty() {
121-
eprintln!("fmt error: path arguments are not accepted");
121+
eprintln!(
122+
"fmt error: path arguments are no longer accepted; use `--all` to format everything"
123+
);
122124
crate::exit!(1);
123125
};
124126
if build.config.dry_run() {

0 commit comments

Comments
 (0)