diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/postamble.js | 8 |
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; |