display a notice to encourage user to contribute when NotImplementedError is raised
This commit is contained in:
parent
05e1058066
commit
bd44734f78
1 changed files with 4 additions and 0 deletions
|
|
@ -340,6 +340,10 @@ class ReplApplication(Cmd, BaseApplication):
|
|||
if not msg:
|
||||
msg = 'website is unavailable.'
|
||||
print >>sys.stderr, u'Error(%s): %s' % (backend.name, msg)
|
||||
elif isinstance(error, NotImplementedError):
|
||||
print >>sys.stderr, u'Error(%s): this feature is not supported yet by this backend.' % backend.name
|
||||
print >>sys.stderr, u' %s To help the maintainer of this backend implement this feature,' % (' ' * len(backend.name))
|
||||
print >>sys.stderr, u' %s please contact: %s <%s>' % (' ' * len(backend.name), backend.MAINTAINER, backend.EMAIL)
|
||||
else:
|
||||
print >>sys.stderr, u'Error(%s): %s' % (backend.name, error)
|
||||
if logging.root.level == logging.DEBUG:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue