diff --git a/src/main.rs b/src/main.rs index 45b6a10..93834e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,8 +114,11 @@ async fn main() { sleep(sleep_duration).await; - // TODO Log the error and continue instead - check_task(&bot, config.reminder_time, &db).await.unwrap(); + let result = check_task(&bot, config.reminder_time, &db).await; + if let Err(e) = result { + // TODO Emitting a backtrace would be nice + error!("{}", e); + } } }); }