changed error reporting in production