mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +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
|
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))
|
||||||
|
Loading…
Reference in New Issue
Block a user