Cleanup the error message

This commit is contained in:
Aleksey Kladov
2021-03-08 21:41:45 +03:00
parent e89c0e3961
commit c0943f84fd
2 changed files with 2 additions and 2 deletions

View File

@@ -377,7 +377,7 @@ pub fn try_ensure_file_contents(file: &Path, contents: &str) -> Result<(), ()> {
display_path.display() display_path.display()
); );
if is_ci() { 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() { if let Some(parent) = file.parent() {
let _ = std::fs::create_dir_all(parent); let _ = std::fs::create_dir_all(parent);

View File

@@ -56,7 +56,7 @@ pub(crate) fn ensure_file_contents(file: &Path, contents: &str) -> Result<()> {
display_path.display() display_path.display()
); );
if std::env::var("CI").is_ok() { 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() { if let Some(parent) = file.parent() {
let _ = std::fs::create_dir_all(parent); let _ = std::fs::create_dir_all(parent);