Configurable error handler supporting source maps