# Feature request: on error stage

**URL:** <https://www.finalbuilder.com/forums/t/feature-request-on-error-stage/5134>\
**Category:** Feature Requests\
**Tags:** implemented\
**Created:** [December 24, 2013, 1:39am UTC](https://www.finalbuilder.com/forums/t/feature-request-on-error-stage/5134 "2013-12-24T01:39:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [December 24, 2013, 1:39am UTC](https://www.finalbuilder.com/forums/t/feature-request-on-error-stage/5134/1 "2013-12-24T01:39:11Z")

</div>

I am currently integrating automatic builds of pull requests. I have the following stages for CI:

1) Initialize

2) Build

3) Test

4) Finalize

My idea is to update the github status in the _Initialize_&nbsp;stage. In the _Finalize_&nbsp;stage I set the status to _succes_. This all works great. However, I also want to set the state to _error_&nbsp;when \*any\* of the stages fail. For example, unit tests fail. I don't want to add a try/catch around all the stages (some CI builds have even more stages).

I want the same thing that is available in FinalBuilder, an OnError stage which runs when any error occurs.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [January 1, 2014, 11:55am UTC](https://www.finalbuilder.com/forums/t/feature-request-on-error-stage/5134/2 "2014-01-01T11:55:04Z")

</div>

Hi Geert,

We have been working on an "Event Handlers" feature to be triggered by various events in the Continua CI build process. This includes an Update GitHub Status handler as well as a handler for tagging changesets in repositories. We plan to release this as part of version 1.1 over the next couple of months

---

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [January 5, 2014, 3:03am UTC](https://www.finalbuilder.com/forums/t/feature-request-on-error-stage/5134/3 "2014-01-05T03:03:11Z")

</div>

Excellent! Let me know if you need beta testers.
