set errors correctly in BulkShardProcessor