summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorkyoheiu <kyoheiu@outlook.com>2022-04-15 10:14:15 +0900
committerkyoheiu <kyoheiu@outlook.com>2022-04-15 10:14:15 +0900
commit3f74078e6328f856f66415261161159d0c6a71db (patch)
treeeaa663cff01eee7b73c582897bc7d5450c4fc09e /src/main.rs
parenta1c82c1b1543869fe843d82d65d71ed0402ecfb7 (diff)
Use eprintln!
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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);
}
}
},