Fix command error handling
This commit is contained in:
parent
10157a24db
commit
2e48a97e6e
1 changed files with 2 additions and 2 deletions
|
@ -282,10 +282,10 @@ impl Bot {
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Err(error) = self.handle_command(ev, room, command).await {
|
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
|
let _ignore = room
|
||||||
.send(
|
.send(
|
||||||
RoomMessageEventContent::text_plain("error handling command: {error}"),
|
RoomMessageEventContent::text_plain(format!("error handling command: {error:#}")),
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
Loading…
Reference in a new issue