summaryrefslogtreecommitdiff
path: root/src/handlers/error.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-30 23:30:00 -0500
committerseth <[email protected]>2023-12-01 07:12:49 -0500
commit85402f9103b55dff65c6a6079c6902080e5a30a6 (patch)
treeeba04a9f9938ac1d7ac14cb5d7bc5e0fb8f4db16 /src/handlers/error.rs
parent41dfa94258215769b9d844875e79097d4a498770 (diff)
feat: add redis for reactboard
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 b4e1361..e256bcf 100644
--- a/src/handlers/error.rs
+++ b/src/handlers/error.rs
@@ -11,7 +11,7 @@ pub async fn handle(error: poise::FrameworkError<'_, Data, Report>) {
FrameworkError::Setup { error, .. } => error!("error setting up client! {error:#?}"),
FrameworkError::Command { error, ctx } => {
- error!("error in command {}:\n{error:?}", ctx.command().name);
+ error!("Error in command {}:\n{error:?}", ctx.command().name);
ctx.send(|c| {
c.embed(|e| {
e.title("Something went wrong!")
@@ -30,12 +30,12 @@ pub async fn handle(error: poise::FrameworkError<'_, Data, Report>) {
event: _,
framework: _,
} => {
- error!("error while handling event:\n{error:#?}");
+ error!("Error while handling event:\n{error:#?}");
}
error => {
if let Err(e) = poise::builtins::on_error(error).await {
- error!("error while handling an error: {}", e);
+ error!("Unhandled error occured:\n{e:#?}");
}
}
}