mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-13 06:35:24 +00:00
Use eprintln! instead of println! for console message
This commit is contained in:
parent
becb40544c
commit
c1abd3d6f9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue