summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-03-04 13:24:21 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-03-04 13:24:21 +0100
commit49a35d7e3710bb47ba8fdab9ec81bfc1ebf37a6b (patch)
treec9dfec6291d264db91f6898b47d1737cf77e0ee6
parentaff739d30fb9eb530aaf9949bf0ede61cbe25860 (diff)
downloadpykolab-49a35d7e3710bb47ba8fdab9ec81bfc1ebf37a6b.tar.gz
A little more verbosity on modules configured not available
-rw-r--r--wallace/modules.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wallace/modules.py b/wallace/modules.py
index 861da75..b3de82e 100644
--- a/wallace/modules.py
+++ b/wallace/modules.py
@@ -105,12 +105,12 @@ def list_modules(*args, **kw):
def execute(name, *args, **kw):
if not modules.has_key(name):
- log.error(_("No such module."))
+ log.error(_("No such module %r in modules %r (1).") % (name, modules))
sys.exit(1)
if not modules[name].has_key('function') and \
not modules[name].has_key('group'):
- log.error(_("No such module."))
+ log.error(_("No such module %r in modules %r (2).") %(name, modules))
sys.exit(1)
modules[name]['function'](*args, **kw)