Find out what action failed in the OnFailure tab

Is there a way that I can find out what was the action that failed when I get in the OnFailure tab?

I want to send an email to some developers when the build fails.

I want to tell the developer what action failed in the email subject.

Is there maybe a variable or somerthing that I can mention in my mail to inform the developer what was the exact action?

Thanks,

Johan.

Hi Johan

Unfortunately there is no variable that you can reference that will give you the action that failed the build.

Without using try/catch blocks to catch errors in places where the build commonly fails, you could use the Export Log Log to File action to export the errors to an xml file (enable the ‘Only Include Error Actions in Log’ option) and then extract the action and the associated error message to variables that are included in the email message.

Hope this helps.

Regards,
Steve

Thanks Stephen, that's kind of what I'm doing now.

I was hoping there maybe was an easier way.

Unfortunaly there seems to be none.