do not display errors in production mode