[IMP] web: better error log when starting js modules
Before this commit, the module system logged module errors by displaying the stack. Fun fact: the stack in Chrome does display the error message (which is why nobody complained too much about bad error messages), but this is not true in firefox. Also, and this is a bigger issue, when we serialize the error stack like this, we prevent the browser to apply sourcemaps, if any. Which means that errors in debug=assets are not easy to understand. With this commit, we display the raw error, which means that in debug=assets, this will be nicely formatted by the browser when displayed in the console.
Loading
Please register or sign in to comment