aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-01 11:55:13 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-03-01 13:31:47 -0800
commitc46b9c0557eda229f1e73ebc54e079b321f997bd (patch)
treeedbd3425b9ba8945f8b75a65ea396c7e69baa44e /src
parent0f23cac48fe4e5278e5b35f6a40e6f8a214d5e7c (diff)
mention ASSERTIONS in abort() calls
Diffstat (limited to 'src')
-rw-r--r--src/postamble.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/postamble.js b/src/postamble.js
index bb1e334c..603b330c 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -181,7 +181,13 @@ function abort(text) {
ABORT = true;
EXITSTATUS = 1;
- throw 'abort() at ' + stackTrace();
+#if ASSERTIONS == 0
+ var extra = '\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.';
+#else
+ var extra = '';
+#endif
+
+ throw 'abort() at ' + stackTrace() + extra;
}
Module['abort'] = Module.abort = abort;