From ac6a152ec50cefbbd253c2c4b98cd82f0917f9af Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 15 May 2013 11:31:37 +0200 Subject: [PATCH] Improve email notifications status messages Add "Failed with output", and shorten "Failed with non-zero exit code" to "Failed". --- src/lib/Hydra/Plugin/EmailNotification.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index b0e68ebe..f6e05494 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -21,9 +21,10 @@ sub showStatus { my $status = "Failed"; given ($build->buildstatus) { when (0) { $status = "Success"; } - when (1) { $status = "Failed with non-zero exit code"; } + when (1) { $status = "Failed"; } when (2) { $status = "Dependency failed"; } when (4) { $status = "Cancelled"; } + when (6) { $status = "Failed with output"; } } return $status;