diff options
author | Andreas Bergmeier <andreas.bergmeier@gmx.net> | 2013-04-25 17:53:00 +0200 |
---|---|---|
committer | Andreas Bergmeier <andreas.bergmeier@gmx.net> | 2013-04-25 17:55:04 +0200 |
commit | 1401d2c78ac4b454d7a5caf64a0ffe7642cdb6e4 (patch) | |
tree | a04888065aebf9baad88e37838e0c160abf4b4b6 /emmake | |
parent | ce39f0a30be34983986652a5a0e1b914542a5065 (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-x | emmake | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 ) |