mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 01:16:21 +00:00
[commands] Pass failed argument's value to BadLiteralArgument
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user