Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Add check preprocessor.py return code
Browse files Browse the repository at this point in the history
  • Loading branch information
seleznev committed May 8, 2014
1 parent ccfc36f commit 2c78ea7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build/addonbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def _preprocess(self, source, target, app_version=None):
cmd = cmd + variables
cmd = cmd + ["--output="+target_full, source_full]

subprocess.call(cmd)
if subprocess.call(cmd):
print("BuildError: preprocessor.py returned no zero code")
print("Full command was: \"%s\"" % " ".join(str(e) for e in cmd))
os.remove(target_full)
sys.exit(2)

line = open(deps_tmp_file, "r").readline()
line = re.sub(r"^[^:]*:", "", line)
Expand Down

0 comments on commit 2c78ea7

Please sign in to comment.