Submitter | Yuya Nishihara |
---|---|
Date | Oct. 4, 2017, 2:53 p.m. |
Message ID | <bc4545271d0456e83e49.1507128834@mimosa> |
Download | mbox | patch |
Permalink | /patch/24491/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -79,12 +79,14 @@ def run(): err = None try: status = (dispatch(req) or 0) & 255 - except error.StdioError as err: + except error.StdioError as e: + err = e status = -1 if util.safehasattr(req.ui, 'fout'): try: req.ui.fout.flush() - except IOError as err: + except IOError as e: + err = e status = -1 if util.safehasattr(req.ui, 'ferr'): if err is not None and err.errno != errno.EPIPE: