Improved browserify error handling