aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-29 13:48:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-29 14:33:58 -0800
commit6fc5fed5b060a4397af2f1a1b7ee6a375949e4c9 (patch)
tree852539d34fe2835f229393bbf5bd9d02db56ec5e /tools
parent15fa8904454a94daa09fd62b036256c89037e381 (diff)
better error message on errors in CRUNCH
Diffstat (limited to 'tools')
-rw-r--r--tools/file_packager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py
index 9699730f..874ad942 100644
--- a/tools/file_packager.py
+++ b/tools/file_packager.py
@@ -107,7 +107,11 @@ for arg in sys.argv[2:]:
jsoutput = arg.split('=')[1] if '=' in arg else None
leading = ''
elif arg.startswith('--crunch'):
- from shared import CRUNCH
+ try:
+ from shared import CRUNCH
+ except Exception, e:
+ print >> sys.stderr, 'count not import CRUNCH (make sure it is defined properly in ~/.emscripten)'
+ raise e
crunch = arg.split('=')[1] if '=' in arg else '128'
leading = ''
elif arg.startswith('--plugin'):