Explicit module load errors
This commit is contained in:
parent
0441381212
commit
59a7a0d842
1 changed files with 2 additions and 2 deletions
|
|
@ -128,9 +128,9 @@ class ModulesLoader(object):
|
|||
|
||||
minfo = self.repositories.get_module_info(module_name)
|
||||
if minfo is None:
|
||||
raise ModuleLoadError(module_name, 'No such module')
|
||||
raise ModuleLoadError(module_name, 'No such module %s' % module_name)
|
||||
if minfo.path is None:
|
||||
raise ModuleLoadError(module_name, 'Module is not installed')
|
||||
raise ModuleLoadError(module_name, 'Module %s is not installed' % module_name)
|
||||
|
||||
try:
|
||||
fp, pathname, description = imp.find_module(module_name, [minfo.path])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue