Use eprintln! instead of println! for console message

This commit is contained in:
Kitaiti Makoto 2021-01-05 21:41:43 +09:00
parent becb40544c
commit c1abd3d6f9

View file

@ -65,7 +65,7 @@ fn init_pool() -> Option<DbPool> {
fn main() {
match dotenv::dotenv() {
Ok(path) => println!("Configuration read from {}", path.display()),
Ok(path) => eprintln!("Configuration read from {}", path.display()),
Err(ref e) if e.not_found() => eprintln!("no .env was found"),
e => e.map(|_| ()).unwrap(),
}