Skip to content

Commit

Permalink
Add a helpful suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
parno committed Dec 29, 2023
1 parent 431bed7 commit 592b644
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,10 @@ pub fn rustfmt(value: &str) -> Option<String> {
if output.status.success() {
return Some(from_utf8(&output.stdout).unwrap().into());
} else {
eprintln!("rustfmt failed! {}", from_utf8(&output.stderr).unwrap());
eprintln!(
"\nrustfmt failed! {}\n\tConsider running with --verus-only\n",
from_utf8(&output.stderr).unwrap()
);
}
}
}
Expand Down

0 comments on commit 592b644

Please sign in to comment.