Added config option for display of errors