mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
resultify get_fresh_msgs(), this will make eg. test fail on bad sql
This commit is contained in:
@@ -1000,7 +1000,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
println!("HTML written to: {:#?}", file);
|
||||
}
|
||||
"listfresh" => {
|
||||
let msglist = context.get_fresh_msgs().await;
|
||||
let msglist = context.get_fresh_msgs().await?;
|
||||
|
||||
log_msglist(&context, &msglist).await?;
|
||||
print!("{} fresh messages.", msglist.len());
|
||||
|
||||
Reference in New Issue
Block a user