Getting Errors in Post

Hi,

I have a pipeline with a bunch of stages. The build can fail at any stage.
In post, I send the result of the build to a discord channel.
I’d like to be more specific with this message and include the errors encountered in the build.

Is there anyway to retrieve the list of errors and append them to my message?

Seems like it should be quite straight forward but I can’t find the proper variable with that info.

Thanks,