Sfoglia il codice sorgente

fix: change error println to eprintln

Miles Murgaw 2 anni fa
parent
commit
8cf6f60e93
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
                         }
                     }
                 }