Use stderr and a different emoji for error log messages
This commit is contained in:
parent
e1d70e8a59
commit
365b847313
|
@ -38,13 +38,13 @@ pub(super) async fn update_loop(service: Services) -> color_eyre::Result<()> {
|
||||||
let status = match service.update(timestamp).await {
|
let status = match service.update(timestamp).await {
|
||||||
Ok(status) => status,
|
Ok(status) => status,
|
||||||
Err(Error::NotAuthorized) => {
|
Err(Error::NotAuthorized) => {
|
||||||
println!("✨ Update unauthorized, trying to log in again...");
|
eprintln!("💥 Update unauthorized, trying to log in again...");
|
||||||
service.login().await?;
|
service.login().await?;
|
||||||
println!("⚡ Logged in successfully!");
|
println!("⚡ Logged in successfully!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("✨ Failed to update status: {}", e);
|
eprintln!("💥 Failed to update status: {}", e);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue