mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
ui: flush stdout before writing traceback to stderr
Sometimes a traceback message is paired with ui.debug(). This patch makes sure that these messages are displayed in the right order.
This commit is contained in:
parent
0bfa24333c
commit
398221202a
@ -867,6 +867,7 @@ class ui(object):
|
||||
''.join(causetb),
|
||||
''.join(exconly))
|
||||
else:
|
||||
self.flush() # flush debug or status message
|
||||
traceback.print_exception(exc[0], exc[1], exc[2],
|
||||
file=self.ferr)
|
||||
return self.tracebackflag or force
|
||||
|
Loading…
Reference in New Issue
Block a user