mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Flash a status bar message if an error log event occurs
This commit is contained in:
parent
49b65d2ea4
commit
33d03d916a
@ -276,6 +276,9 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
return
|
||||
|
||||
if level == "error":
|
||||
signals.status_message.send(
|
||||
message = "Error: %s" % str(e)
|
||||
)
|
||||
e = urwid.Text(("error", str(e)))
|
||||
else:
|
||||
e = urwid.Text(str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user