add failOnError property