make sure to escape errors printed to the console

This commit is contained in:
Maximilian Hils 2016-07-25 14:37:19 -07:00
parent 56796aeda2
commit ffe6593361

View File

@ -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: