Mercurial > hg
comparison mercurial/worker.py @ 32043:b844d0d367e2
worker: print traceback for uncaught exception unconditionally
This is what a Python interpreter would do if there were no os._exit().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 15 Apr 2017 13:04:55 +0900 |
parents | 8f8ad0139b8b |
children | 31763785094b |
comparison
equal
deleted
inserted
replaced
32042:8f8ad0139b8b | 32043:b844d0d367e2 |
---|---|
157 ui.flush() | 157 ui.flush() |
158 except KeyboardInterrupt: | 158 except KeyboardInterrupt: |
159 os._exit(255) | 159 os._exit(255) |
160 except: # never return, therefore no re-raises | 160 except: # never return, therefore no re-raises |
161 try: | 161 try: |
162 ui.traceback() | 162 ui.traceback(force=True) |
163 ui.flush() | 163 ui.flush() |
164 finally: | 164 finally: |
165 os._exit(255) | 165 os._exit(255) |
166 else: | 166 else: |
167 os._exit(ret & 255) | 167 os._exit(ret & 255) |