aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorItai Sadan <itaisod@gmail.com>2020-01-18 12:59:59 +0200
committerItai Sadan <itaisod@gmail.com>2020-01-18 12:59:59 +0200
commit78dc2094b0d92abcfac97427d88e56568ed9f487 (patch)
tree389288e882231b55734ad9b4ad66c3c3a79dd58a /mitmproxy/command.py
parent04c88b49c8df71bd3198bad10f15a58ca449fbce (diff)
downloadmitmproxy-78dc2094b0d92abcfac97427d88e56568ed9f487.tar.gz
mitmproxy-78dc2094b0d92abcfac97427d88e56568ed9f487.tar.bz2
mitmproxy-78dc2094b0d92abcfac97427d88e56568ed9f487.zip
fix re-raised exceptions not having a message
Diffstat (limited to 'mitmproxy/command.py')
-rw-r--r--mitmproxy/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/command.py b/mitmproxy/command.py
index 8822bb9b..bfec47e1 100644
--- a/mitmproxy/command.py
+++ b/mitmproxy/command.py
@@ -284,7 +284,7 @@ def parsearg(manager: CommandManager, spec: str, argtype: type) -> typing.Any:
try:
return t.parse(manager, argtype, spec)
except exceptions.TypeError as e:
- raise exceptions.CommandError from e
+ raise exceptions.CommandError(str(e)) from e
def command(name: typing.Optional[str] = None):