[commands] Pass failed argument's value to BadLiteralArgument

This commit is contained in:
Soheab_
2023-03-03 09:07:22 -05:00
committed by GitHub
parent 78099992dd
commit a938b10e5a
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1330,7 +1330,7 @@ async def run_converters(ctx: Context[BotT], converter: Any, argument: str, para
return value
# if we're here, then we failed to match all the literals
raise BadLiteralArgument(param, literal_args, errors)
raise BadLiteralArgument(param, literal_args, errors, argument)
# This must be the last if-clause in the chain of origin checking
# Nearly every type is a generic type within the typing library