Fix hints in not found error
This commit is contained in:
parent
57e08c6cad
commit
b914e66969
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ class Boobsize(ReplApplication):
|
||||||
|
|
||||||
def bcall_error_handler(self, backend, error, backtrace):
|
def bcall_error_handler(self, backend, error, backtrace):
|
||||||
if isinstance(error, SensorNotFound):
|
if isinstance(error, SensorNotFound):
|
||||||
msg = unicode(error) or 'Sensor not found (hint: try sensors command)'
|
msg = unicode(error) or 'Sensor not found (hint: try details command)'
|
||||||
print >>sys.stderr, 'Error(%s): %s' % (backend.name, msg)
|
print >>sys.stderr, 'Error(%s): %s' % (backend.name, msg)
|
||||||
else:
|
else:
|
||||||
return ReplApplication.bcall_error_handler(self, backend, error, backtrace)
|
return ReplApplication.bcall_error_handler(self, backend, error, backtrace)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue