Show More
@@ -96,10 +96,16 b' def run():' | |||
|
96 | 96 | err = e |
|
97 | 97 | status = -1 |
|
98 | 98 | if util.safehasattr(req.ui, 'ferr'): |
|
99 | if err is not None and err.errno != errno.EPIPE: | |
|
100 | req.ui.ferr.write('abort: %s\n' % | |
|
101 | encoding.strtolocal(err.strerror)) | |
|
102 | req.ui.ferr.flush() | |
|
99 | try: | |
|
100 | if err is not None and err.errno != errno.EPIPE: | |
|
101 | req.ui.ferr.write('abort: %s\n' % | |
|
102 | encoding.strtolocal(err.strerror)) | |
|
103 | req.ui.ferr.flush() | |
|
104 | # There's not much we can do about an I/O error here. So (possibly) | |
|
105 | # change the status code and move on. | |
|
106 | except IOError: | |
|
107 | status = -1 | |
|
108 | ||
|
103 | 109 | sys.exit(status & 255) |
|
104 | 110 | |
|
105 | 111 | def _initstdio(): |
General Comments 0
You need to be logged in to leave comments.
Login now