# How do I set the status of a FB build to failure?

**URL:** https://www.finalbuilder.com/forums/t/how-do-i-set-the-status-of-a-fb-build-to-failure/421
**Category:** Discussion
**Created:** [April 5, 2007, 9:25am UTC](https://www.finalbuilder.com/forums/t/how-do-i-set-the-status-of-a-fb-build-to-failure/421 "2007-04-05T09:25:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![paulstock](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paulstock/32/45_2.png) [@paulstock](https://www.finalbuilder.com/forums/u/paulstock)
#### Post date: [April 5, 2007, 9:25am UTC](https://www.finalbuilder.com/forums/t/how-do-i-set-the-status-of-a-fb-build-to-failure/421/1 "2007-04-05T09:25:14Z")

</div>

I’ve got my builds set up with Try/Catch blocks and in the Finally block I always send an email so that I get an email telling me if the build succeeded or failed.  
  
The only problem with this is that if an error is caught in the Try block, then in the build history it will show that the build ran successfully, when I’d really like it to show that the build failed.&nbsp; (even though I caught the error).  
  
So I think what I’d like to do is still catch the error in the Try block, but still be able to somehow set the overall status of the build to “failed” before ending the build.  
  
Does that make sense?  
  
Thanks  
  
Paul

---

<div class="post-metadata">

### Author: ![raoul](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/2acd7d/32.png) [@raoul](https://www.finalbuilder.com/forums/u/raoul)
#### Post date: [April 6, 2007, 8:13am UTC](https://www.finalbuilder.com/forums/t/how-do-i-set-the-status-of-a-fb-build-to-failure/421/2 "2007-04-06T08:13:06Z")

</div>

You can add a raise exception action to the catch block to make the build fail after you done all of your clean up.

---

<div class="post-metadata">

### Author: ![paulstock](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paulstock/32/45_2.png) [@paulstock](https://www.finalbuilder.com/forums/u/paulstock)
#### Post date: [April 6, 2007, 3:37am UTC](https://www.finalbuilder.com/forums/t/how-do-i-set-the-status-of-a-fb-build-to-failure/421/3 "2007-04-06T03:37:43Z")

</div>

Yes, that did it.&nbsp; Knew it had to be simple to do.  
  
Thanks so much for your help.  
  
Paul
