Explorar o código

fix: change error println to eprintln

Miles Murgaw %!s(int64=2) %!d(string=hai) anos
pai
achega
8cf6f60e93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
                         }
                     }
                 }