add error obj beside return result in block.