mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Error to stdout when loading bad replays from the command line
This commit is contained in:
parent
72690f2864
commit
3dcba41d6d
@ -508,6 +508,10 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
def client_playback_path(self, path):
|
def client_playback_path(self, path):
|
||||||
err, ret = self._readflow(path)
|
err, ret = self._readflow(path)
|
||||||
if err:
|
if err:
|
||||||
|
if not self.statusbar:
|
||||||
|
print >> sys.stderr, ret
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
self.statusbar.message(ret)
|
self.statusbar.message(ret)
|
||||||
else:
|
else:
|
||||||
self.start_client_playback(ret, False)
|
self.start_client_playback(ret, False)
|
||||||
@ -515,6 +519,10 @@ class ConsoleMaster(flow.FlowMaster):
|
|||||||
def server_playback_path(self, path):
|
def server_playback_path(self, path):
|
||||||
err, ret = self._readflow(path)
|
err, ret = self._readflow(path)
|
||||||
if err:
|
if err:
|
||||||
|
if not self.statusbar:
|
||||||
|
print >> sys.stderr, ret
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
self.statusbar.message(ret)
|
self.statusbar.message(ret)
|
||||||
else:
|
else:
|
||||||
self.start_server_playback(
|
self.start_server_playback(
|
||||||
|
Loading…
Reference in New Issue
Block a user