Show More
@@ -79,12 +79,14 b' def run():' | |||||
79 | err = None |
|
79 | err = None | |
80 | try: |
|
80 | try: | |
81 | status = (dispatch(req) or 0) & 255 |
|
81 | status = (dispatch(req) or 0) & 255 | |
82 |
except error.StdioError as e |
|
82 | except error.StdioError as e: | |
|
83 | err = e | |||
83 | status = -1 |
|
84 | status = -1 | |
84 | if util.safehasattr(req.ui, 'fout'): |
|
85 | if util.safehasattr(req.ui, 'fout'): | |
85 | try: |
|
86 | try: | |
86 | req.ui.fout.flush() |
|
87 | req.ui.fout.flush() | |
87 |
except IOError as e |
|
88 | except IOError as e: | |
|
89 | err = e | |||
88 | status = -1 |
|
90 | status = -1 | |
89 | if util.safehasattr(req.ui, 'ferr'): |
|
91 | if util.safehasattr(req.ui, 'ferr'): | |
90 | if err is not None and err.errno != errno.EPIPE: |
|
92 | if err is not None and err.errno != errno.EPIPE: |
General Comments 0
You need to be logged in to leave comments.
Login now