Changed bulk_write error report logic