diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-19 10:57:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-19 10:57:45 -0700 |
commit | 07cd461075266e96a2805e372824d5987e482bc8 (patch) | |
tree | 571f1793178ed15e63951da7af8cf8392cda70b5 | |
parent | 95e3ccbcb7bd802e1b4287d3fc964deda75dd73c (diff) | |
parent | d1806a5165e6599cc9a0ad741f1cc4fd866e3054 (diff) |
Merge pull request #1079 from juj/build_library_error_report
Improve error reporting in build_library.
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index d5a37c03..d1049842 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -732,13 +732,13 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e basename = os.path.basename(f) cache[cache_name].append((basename, open(f, 'rb').read())) break - except: + except Exception, e: if i > 0: # Due to the ugly hack above our best guess is to output the first run with open_make_err(0) as ferr: for line in ferr: sys.stderr.write(line) - raise Exception('could not build library ' + name) + raise Exception('could not build library ' + name + ' due to exception ' + str(e)) if old_dir: os.chdir(old_dir) return generated_libs |