Fix command error handling

This commit is contained in:
Xiretza 2024-01-21 16:16:23 +00:00
parent 10157a24db
commit 2e48a97e6e

View file

@ -282,10 +282,10 @@ impl Bot {
};
if let Err(error) = self.handle_command(ev, room, command).await {
event!(Level::WARN, ?error, "handling command failed");
event!(Level::WARN, ?error, "handling command failed: {error:#}");
let _ignore = room
.send(
RoomMessageEventContent::text_plain("error handling command: {error}"),
RoomMessageEventContent::text_plain(format!("error handling command: {error:#}")),
None,
)
.await;