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 /emconfigure | |
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 'emconfigure')
-rwxr-xr-x | emconfigure | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emconfigure b/emconfigure index 51e57c64..30fc10ec 100755 --- a/emconfigure +++ b/emconfigure @@ -18,6 +18,10 @@ Relevant defines: import os, sys from tools import shared +from subprocess import CalledProcessError -shared.Building.configure(sys.argv[1:]) +try: + shared.Building.configure(sys.argv[1:]) +except CalledProcessError, e: + sys.exit( e.returncode ) |