Skip to content

Commit

Permalink
Check compiler exit status.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberdelia committed Mar 1, 2015
1 parent 4787189 commit fa6aa61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipeline/compilers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ def execute_command(self, command, content=None, cwd=None):
raise CompilerError(stderr)
if self.verbose:
print(stderr)
if pipe.returncode != 0:
raise CompilerError("Command '%s' returned non-zero exit status %d".format(command, pipe.returncode))
return stdout

0 comments on commit fa6aa61

Please sign in to comment.