diff options
-rw-r--r-- | libmproxy/console/common.py | 1 | ||||
-rw-r--r-- | libmproxy/flow.py | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index 165b9497..34f3ae4a 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -145,7 +145,6 @@ def format_flow(f, focus, extended=False, padding=2): resp.append(fcol(utils.pretty_size(len(f.response.content)), rc)) else: resp.append(fcol("[empty content]", rc)) - elif f.error: resp.append( urwid.Text([ diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 2b371180..776846fe 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -660,9 +660,9 @@ class Error(controller.Msg): ) @classmethod - def _from_state(klass, state): + def _from_state(klass, request, state): return klass( - None, + request, state["msg"], state["timestamp"], ) @@ -896,7 +896,7 @@ class Flow: if self.error: self.error._load_state(state["error"]) else: - self.error = Error._from_state(state["error"]) + self.error = Error._from_state(self.request, state["error"]) else: self.error = None |