Bug 917793 - Ensure printing exceptions in js build scripts r=yurenju

https://bugzilla.mozilla.org/show_bug.cgi?id=917793