Skip to content

Commit fa6aa61

Browse files
committed
Check compiler exit status.
1 parent 4787189 commit fa6aa61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pipeline/compilers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,6 @@ def execute_command(self, command, content=None, cwd=None):
104104
raise CompilerError(stderr)
105105
if self.verbose:
106106
print(stderr)
107+
if pipe.returncode != 0:
108+
raise CompilerError("Command '%s' returned non-zero exit status %d".format(command, pipe.returncode))
107109
return stdout

0 commit comments

Comments
 (0)