Email on Job Failed [DONE]

Here is an example of error handling. An email notification can be added to the "error" workflow branch.

Just in case you haven't read it yet, check out this topic: How to send notifications to Microsoft Teams