From 9c49587e49c381c87776243081d2128650ba1715 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 8 Oct 2007 13:19:28 -0300 Subject: [PATCH] Better error message of wrong arguments in Dispatcher. --- pymin/dispatcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymin/dispatcher.py b/pymin/dispatcher.py index 0127d4f..10e7fb8 100644 --- a/pymin/dispatcher.py +++ b/pymin/dispatcher.py @@ -459,7 +459,8 @@ class Dispatcher: pl = '' if n_ok > 1: pl = 's' - raise WrongArgumentsError(u'%s takes %s %s argument%s, %s given' + raise WrongArgumentsError( + u'Command "%s" takes %s %s argument%s, %s given.' % (handler.__name__, quant, n_ok, pl, n_bad)) raise -- 2.43.0