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

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.  (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

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

Yes, that did it.  Knew it had to be simple to do.

Thanks so much for your help.

Paul