prints to starnard error

master
Avril 4 years ago
parent 042456b94a
commit 6fd8627a33
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,6 +1,6 @@
[package]
name = "lolistealer"
version = "1.1.0"
version = "1.2.0"
authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018"

@ -42,12 +42,17 @@ async fn main() -> Result<(), Box<dyn std::error::Error>>
let conf = match parse_args() {
Ok(v) => v,
Err(e) => {
println!("Failed to parse args: {}", e);
eprintln!("Failed to parse args: {}", e);
std::process::exit(1)
},
};
work_async::work(conf).await
if let Err(e) = work_async::work(conf).await {
eprintln!("Worker error: {}", e);
std::process::exit(1)
}
Ok(())
}
#[cfg(not(feature="async"))]

@ -158,7 +158,7 @@ pub async fn work(conf: config::Config) -> Result<(), Box<dyn std::error::Error>
if failures.len() > 0 {
println!("Reasons for failure(s):");
for failure in failures.into_iter() {
println!("\t{}", failure);
eprintln!("\t{}", failure);
}
}

Loading…
Cancel
Save