소스 검색

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);
                         }
                     }
                 }