aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-04-19 09:36:14 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-04-19 09:36:14 +0300
commitd1806a5165e6599cc9a0ad741f1cc4fd866e3054 (patch)
tree117dca771f3ad6b5800bc2e2f2762ff7f97d1c3d /tools
parentd9173c5dfb0c58a7d5be96f1e4615cefd77f6f43 (diff)
Improve error reporting in build_library.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py4
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