fixed the default value for failOnError to match the readme