emit errors if we have body.error