mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
make sure to escape errors printed to the console
This commit is contained in:
parent
56796aeda2
commit
ffe6593361
@ -231,7 +231,8 @@ class Dumper(object):
|
||||
self._echo_message(f.response)
|
||||
|
||||
if f.error:
|
||||
self.echo(" << {}".format(f.error.msg), bold=True, fg="red")
|
||||
msg = strutils.escape_control_characters(f.error.msg)
|
||||
self.echo(" << {}".format(msg), bold=True, fg="red")
|
||||
|
||||
def match(self, f):
|
||||
if self.flow_detail == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user