[mail] add MailException to get better error messages

4 jobs for 238-dev-async-job-worker in 16 minutes and 18 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Cabal
failed #15726
cabal

00:16:18

 
  Stack
skipped #15727
stack
 
  Bench
skipped #15728
allowed to fail manual
bench
 
  Test
skipped #15729
test
 
Name Stage Failure
failed
cabal Cabal
+ actual_cabal_project_freeze_hash=30dd1cf2cb2015351dd0576391d22b187443b1935c2be23599b821ad1ab95f23
+ [[ b4ec3f24ca07193e79e3da5dc68c8bf3041a6f6f82d8850d5bdd1bacf8ebba04 != eb28225cf0ebf07cc233223d3bbed085ea6ed19e05912c06ecda92a89f8132cb ]]
+ echo -e '\e[31mERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.\e[0m'
+ echo -e '\e[33mPlease update the hashes inside the '\''./bin/update-project-dependencies'\'' file.\e[0m'
+ exit 1
ERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.
Please update the hashes inside the './bin/update-project-dependencies' file.
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1