adds errors within a data block, if present