Преглед изворни кода

fix: change error println to eprintln

Miles Murgaw пре 2 година
родитељ
комит
8cf6f60e93
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/cli/autoformat/mod.rs

+ 1 - 1
src/cli/autoformat/mod.rs

@@ -57,7 +57,7 @@ impl Autoformat {
                             println!("formatted {}", file);
                         }
                         Err(e) => {
-                            println!("failed to write formatted content to file: {}", e);
+                            eprintln!("failed to write formatted content to file: {}", e);
                         }
                     }
                 }