Skip to content

Commit c9f7f72

Browse files
committed
Print process output on non-zero exit value
Required for logger to print debug message with error output from process, in case of aborting due to non-zero exit values.
1 parent b575370 commit c9f7f72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

latextools/make_pdf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def worker(self, activity_indicator):
122122

123123
self.caller.proc = None
124124

125+
self.caller.builder.set_output(out)
126+
125127
# print and handle command exit status
126128
logger.info(f"Finished with status {proc.returncode}.")
127129
if pending:
@@ -132,7 +134,6 @@ def worker(self, activity_indicator):
132134
aborted = True
133135
break
134136

135-
self.caller.builder.set_output(out)
136137
# acknowledge coroutine's yield with process's return code
137138
# it allows statements like: `result = yield (cmd, msg)`
138139
cmd, msg = cmd_coroutine.send(proc.returncode)

0 commit comments

Comments
 (0)