diff options
author | kyoheiu <kyoheiu@outlook.com> | 2022-04-15 10:14:15 +0900 |
---|---|---|
committer | kyoheiu <kyoheiu@outlook.com> | 2022-04-15 10:14:15 +0900 |
commit | 3f74078e6328f856f66415261161159d0c6a71db (patch) | |
tree | eaa663cff01eee7b73c582897bc7d5450c4fc09e /src/main.rs | |
parent | a1c82c1b1543869fe843d82d65d71ed0402ecfb7 (diff) |
Use eprintln!
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 4b2c536..476b5ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ fn main() -> Result<(), errors::MyError> { std::env::current_dir() .unwrap_or_else(|_| panic!("Cannot access current directoy.")), ) { - println!("{}", e); + eprintln!("{}", e); } } @@ -27,7 +27,7 @@ fn main() -> Result<(), errors::MyError> { } _ => { if let Err(e) = run::run(std::path::PathBuf::from(&args[1])) { - println!("{}", e); + eprintln!("{}", e); } } }, |