diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-07-25 14:37:19 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-07-25 14:37:19 -0700 |
commit | ffe6593361670a5963d2e07ed6ac2d5f022a66e7 (patch) | |
tree | a915dcd7de7baa4e60220adf793a60827e4c3707 | |
parent | 56796aeda25dda66621ce78af227ff46049ef811 (diff) | |
download | mitmproxy-ffe6593361670a5963d2e07ed6ac2d5f022a66e7.tar.gz mitmproxy-ffe6593361670a5963d2e07ed6ac2d5f022a66e7.tar.bz2 mitmproxy-ffe6593361670a5963d2e07ed6ac2d5f022a66e7.zip |
make sure to escape errors printed to the console
-rw-r--r-- | mitmproxy/builtins/dumper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/builtins/dumper.py b/mitmproxy/builtins/dumper.py index 74c2e6b2..59f9349d 100644 --- a/mitmproxy/builtins/dumper.py +++ b/mitmproxy/builtins/dumper.py @@ -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: |