aboutsummaryrefslogtreecommitdiff
path: root/emmake
diff options
context:
space:
mode:
authorAndreas Bergmeier <andreas.bergmeier@gmx.net>2013-04-25 17:53:00 +0200
committerAndreas Bergmeier <andreas.bergmeier@gmx.net>2013-04-25 17:55:04 +0200
commit1401d2c78ac4b454d7a5caf64a0ffe7642cdb6e4 (patch)
treea04888065aebf9baad88e37838e0c160abf4b4b6 /emmake
parentce39f0a30be34983986652a5a0e1b914542a5065 (diff)
Change `Building.make` and `Building.configure` to raise a `CalledProcessError` when the underlying command's `returncode` is not 0.
Handle all calls inside of `shared.py` to ignore the error, so behavior does not change. Handle error in `emmake` and `emconfigure`, so these exit with the `returncode` of the underlying command.
Diffstat (limited to 'emmake')
-rwxr-xr-xemmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/emmake b/emmake
index 05e0a597..832000bb 100755
--- a/emmake
+++ b/emmake
@@ -20,6 +20,10 @@ generate JavaScript.
import os, sys
from tools import shared
+from subprocess import CalledProcessError
-shared.Building.make(sys.argv[1:])
+try:
+ shared.Building.make(sys.argv[1:])
+except CalledProcessError, e:
+ sys.exit( e.returncode )