fix: substitute variables in STATUS error logs

This commit is contained in:
link2xt
2023-11-15 09:51:54 +00:00
parent 890a2bcc15
commit 0f36197c54
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ impl Session {
let status = self
.status(folder, "(UIDNEXT)")
.await
.context("STATUS (UIDNEXT) error for {folder:?}")?;
.with_context(|| format!("STATUS (UIDNEXT) error for {folder:?}"))?;
if let Some(uid_next) = status.uid_next {
let expected_uid_next = get_uid_next(context, folder)
.await