Added config option to turn on/off internal error details in production