Flash a status bar message if an error log event occurs

This commit is contained in:
Aldo Cortesi 2016-07-16 10:39:49 +12:00
parent 49b65d2ea4
commit 33d03d916a

View File

@ -276,6 +276,9 @@ class ConsoleMaster(flow.FlowMaster):
return return
if level == "error": if level == "error":
signals.status_message.send(
message = "Error: %s" % str(e)
)
e = urwid.Text(("error", str(e))) e = urwid.Text(("error", str(e)))
else: else:
e = urwid.Text(str(e)) e = urwid.Text(str(e))