I would like to know how to send a warning as an email when the commit fails.