From 2e48a97e6e2272051125ce36f839de89b09692c7 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sun, 21 Jan 2024 16:16:23 +0000 Subject: [PATCH] Fix command error handling --- src/bot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 4574f3f..cc0cce6 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -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;