Parcourir la source

fix: change error println to eprintln

Miles Murgaw il y a 2 ans
Parent
commit
8cf6f60e93
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
                         }
                     }
                 }