remove commented out code
This commit is contained in:
parent
149321ae10
commit
fecf977978
1 changed files with 0 additions and 10 deletions
|
|
@ -48,16 +48,6 @@ async fn on_error(error: poise::FrameworkError<'_, KBotData, CommandError>) {
|
||||||
error!("Error in command `{}`: {}", ctx.command().name, error,);
|
error!("Error in command `{}`: {}", ctx.command().name, error,);
|
||||||
let _ = ctx.say("Failed to run command.".to_string()).await;
|
let _ = ctx.say("Failed to run command.".to_string()).await;
|
||||||
}
|
}
|
||||||
// poise::FrameworkError::ArgumentParse {
|
|
||||||
// error, input, ctx, ..
|
|
||||||
// } => {
|
|
||||||
// debug!(
|
|
||||||
// "Failed to parse argument `{:?}` for command `{}`: {}",
|
|
||||||
// input,
|
|
||||||
// ctx.command().name,
|
|
||||||
// error
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
error => {
|
error => {
|
||||||
if let Err(e) = poise::builtins::on_error(error).await {
|
if let Err(e) = poise::builtins::on_error(error).await {
|
||||||
error!("Error while handling error: {}", e);
|
error!("Error while handling error: {}", e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue