return transformed errors.