diff --git a/moulinette/core.py b/moulinette/core.py index 573e806f..6ced832a 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -291,9 +291,9 @@ def init_authenticator((vendor, name), kwargs={}): """ try: mod = import_module('moulinette.authenticators.%s' % vendor) - except ImportError: + except ImportError as e: # TODO: List available authenticators vendors - raise MoulinetteError(errno.EINVAL, _("Unknown authenticator vendor '%s'" % vendor)) + raise MoulinetteError(errno.EINVAL, _("Unable to load authenticator vendor '%s': %s") % (vendor, str(e))) else: return mod.Authenticator(name, **kwargs)