aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-26 18:13:46 -0400
committerRapptz <[email protected]>2017-06-26 18:13:46 -0400
commitad20e3066e155ff73bcf5de343fa424abd110ab5 (patch)
tree85077e63da8051921494116a97072210eb4800dc
parentAdd Reaction.__str__ (diff)
downloaddiscord.py-ad20e3066e155ff73bcf5de343fa424abd110ab5.tar.xz
discord.py-ad20e3066e155ff73bcf5de343fa424abd110ab5.zip
[commands] Add parameter that failed in fall-back BadArgument error.
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 567efde5..cc8dd8bf 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -259,7 +259,7 @@ class Command:
except AttributeError:
name = converter.__class__.__name__
- raise BadArgument('Converting to "{}" failed.'.format(name)) from e
+ raise BadArgument('Converting to "{}" failed for parameter "{}".'.format(name, param.name)) from e
@property
def clean_params(self):