Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12299 from ochameau/build-exceptions
Browse files Browse the repository at this point in the history
Bug 917793 - Ensure printing exceptions in js build scripts r=yurenju
  • Loading branch information
ochameau committed Sep 18, 2013
2 parents 909f188 + 864eedb commit e01e457
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -517,7 +517,9 @@ define run-js-command
echo "run-js-command $1";
$(XULRUNNERSDK) $(XPCSHELLSDK) \
-e "const GAIA_BUILD_DIR='$(BUILDDIR)'" \
-f build/xpcshell-commonjs.js -e "require('$(strip $1)').execute()"
-f build/xpcshell-commonjs.js \
-e "try{ require('$(strip $1)').execute(); } \
catch(e) {dump('Exception: ' + e + '\n' + e.stack + '\n');}"
endef

# Optional files that may be provided to extend the set of default
Expand Down

0 comments on commit e01e457

Please sign in to comment.