mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 18:43:38 +00:00
Cleanup the error message
This commit is contained in:
parent
e89c0e3961
commit
c0943f84fd
@ -377,7 +377,7 @@ pub fn try_ensure_file_contents(file: &Path, contents: &str) -> Result<(), ()> {
|
||||
display_path.display()
|
||||
);
|
||||
if is_ci() {
|
||||
eprintln!("\n NOTE: run `cargo test` locally and commit the updated files\n");
|
||||
eprintln!(" NOTE: run `cargo test` locally and commit the updated files\n");
|
||||
}
|
||||
if let Some(parent) = file.parent() {
|
||||
let _ = std::fs::create_dir_all(parent);
|
||||
|
@ -56,7 +56,7 @@ pub(crate) fn ensure_file_contents(file: &Path, contents: &str) -> Result<()> {
|
||||
display_path.display()
|
||||
);
|
||||
if std::env::var("CI").is_ok() {
|
||||
eprintln!("\n NOTE: run `cargo test` locally and commit the updated files\n");
|
||||
eprintln!(" NOTE: run `cargo test` locally and commit the updated files\n");
|
||||
}
|
||||
if let Some(parent) = file.parent() {
|
||||
let _ = std::fs::create_dir_all(parent);
|
||||
|
Loading…
Reference in New Issue
Block a user