improve message when trying to add a backend with missing dependancies
This commit is contained in:
parent
dc26aba20a
commit
de1326fcb2
1 changed files with 2 additions and 2 deletions
|
|
@ -296,8 +296,8 @@ class ConsoleApplication(BaseApplication):
|
||||||
items.update(params)
|
items.update(params)
|
||||||
params = items
|
params = items
|
||||||
config = module.config.load(self.weboob, bname, name, params, nofail=True)
|
config = module.config.load(self.weboob, bname, name, params, nofail=True)
|
||||||
except ModuleLoadError:
|
except ModuleLoadError, e:
|
||||||
print >>sys.stderr, 'Module "%s" does not exist. Hint: use the "modules" command.' % name
|
print >>sys.stderr, 'Unable to load module "%s": %s' % (name, e)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# ask for params non-specified on command-line arguments
|
# ask for params non-specified on command-line arguments
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue