Apply patch to allow breakOnError option