# How to catch and re-raise errors from inner blocks

**URL:** <https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198>\
**Category:** Ansible Developer\
**Created:** [November 13, 2020, 9:44pm UTC](https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198 "2020-11-13T21:44:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [November 13, 2020, 9:44pm UTC](https://forum.ansible.com/t/how-to-catch-and-re-raise-errors-from-inner-blocks/34198/1 "2020-11-13T21:44:46Z")

</div>

I don't know if anyone else has run into this, or if this is the right way to handle this case, but it works for me in Ansible 2.9 and 2.10:

[https://richm.github.io/how-to-catch-and-reraise-errors-in-ansible](https://richm.github.io/how-to-catch-and-reraise-errors-in-ansible)
