diff options
| author | seth <[email protected]> | 2023-12-02 07:00:24 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-15 16:41:13 -0500 |
| commit | 0025ad5ea8d412aacc3184d18063fd5ff3de0175 (patch) | |
| tree | 1d2b5ac5c04a092756180722358d929feeae50aa /src/handlers/error.rs | |
| parent | ac32ec2a0ba37deb0ad82b4f2ee9c1e1b359cc88 (diff) | |
feat: add per guild configuration
Diffstat (limited to 'src/handlers/error.rs')
| -rw-r--r-- | src/handlers/error.rs | 6 |
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 => { |
