mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +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(causetb),
|
||||||
''.join(exconly))
|
''.join(exconly))
|
||||||
else:
|
else:
|
||||||
|
self.flush() # flush debug or status message
|
||||||
traceback.print_exception(exc[0], exc[1], exc[2],
|
traceback.print_exception(exc[0], exc[1], exc[2],
|
||||||
file=self.ferr)
|
file=self.ferr)
|
||||||
return self.tracebackflag or force
|
return self.tracebackflag or force
|
||||||
|
Loading…
Reference in New Issue
Block a user