aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-12-16 11:53:45 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-17 10:11:02 +1300
commitf14ec2d8f043f051db45dd36a1d501788c7818e6 (patch)
treee26529aa117df0e0a03cddd8a6a96b3d28f6fff3 /mitmproxy/command.py
parenteab27db7d6421fe273040dd6a2596d031e4639e1 (diff)
downloadmitmproxy-f14ec2d8f043f051db45dd36a1d501788c7818e6.tar.gz
mitmproxy-f14ec2d8f043f051db45dd36a1d501788c7818e6.tar.bz2
mitmproxy-f14ec2d8f043f051db45dd36a1d501788c7818e6.zip
console: add a data view overlay for command output
Fixes #2654
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 b3c8eb22..2d51317c 100644
--- a/mitmproxy/command.py
+++ b/mitmproxy/command.py
@@ -170,7 +170,7 @@ class Command:
if chk:
pargs.extend(remainder)
else:
- raise exceptions.CommandError("Invalid value type.")
+ raise exceptions.CommandError("Invalid value type: %s - expected %s" % (remainder, self.paramtypes[-1]))
with self.manager.master.handlecontext():
ret = self.func(*pargs)