Added a fail_on_errors configuration option