Skip to content

Commit a2fe3d0

Browse files
CopilotAkinator31
andauthored
chore: log disabled category fallback during finalize
Agent-Logs-Url: https://github.com/Rustmail/rustmail/sessions/7f12ccf8-887b-4e84-8b8f-9f4629b1f1a4 Co-authored-by: Akinator31 <99099121+Akinator31@users.noreply.github.com>
1 parent 2fb9110 commit a2fe3d0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

crates/rustmail/src/modules/categories.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,14 @@ pub async fn finalize_with_category(
214214
let parent = cat.discord_category_id.parse::<u64>().ok();
215215
(parent, Some(cat.id.clone()))
216216
}
217-
Some(_) | None => (None, None),
217+
Some(cat) => {
218+
eprintln!(
219+
"Selected category {} is disabled; falling back to default inbox",
220+
cat.id
221+
);
222+
(None, None)
223+
}
224+
None => (None, None),
218225
}
219226
} else {
220227
(None, None)

0 commit comments

Comments
 (0)