summaryrefslogtreecommitdiff
path: root/src/handlers/error.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-02 07:00:24 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit0025ad5ea8d412aacc3184d18063fd5ff3de0175 (patch)
tree1d2b5ac5c04a092756180722358d929feeae50aa /src/handlers/error.rs
parentac32ec2a0ba37deb0ad82b4f2ee9c1e1b359cc88 (diff)
feat: add per guild configuration
Diffstat (limited to 'src/handlers/error.rs')
-rw-r--r--src/handlers/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/handlers/error.rs b/src/handlers/error.rs
index e256bcf..b5b259d 100644
--- a/src/handlers/error.rs
+++ b/src/handlers/error.rs
@@ -8,7 +8,7 @@ use poise::FrameworkError;
pub async fn handle(error: poise::FrameworkError<'_, Data, Report>) {
match error {
- FrameworkError::Setup { error, .. } => error!("error setting up client! {error:#?}"),
+ FrameworkError::Setup { error, .. } => error!("Error setting up client!\n{error:#?}"),
FrameworkError::Command { error, ctx } => {
error!("Error in command {}:\n{error:?}", ctx.command().name);
@@ -27,10 +27,10 @@ pub async fn handle(error: poise::FrameworkError<'_, Data, Report>) {
FrameworkError::EventHandler {
error,
ctx: _,
- event: _,
+ event,
framework: _,
} => {
- error!("Error while handling event:\n{error:#?}");
+ error!("Error while handling event {}:\n{error:?}", event.name());
}
error => {