Use eprintln! instead of println! for console message
This commit is contained in:
parent
becb40544c
commit
c1abd3d6f9
@ -65,7 +65,7 @@ fn init_pool() -> Option<DbPool> {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
match dotenv::dotenv() {
|
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"),
|
Err(ref e) if e.not_found() => eprintln!("no .env was found"),
|
||||||
e => e.map(|_| ()).unwrap(),
|
e => e.map(|_| ()).unwrap(),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user