From a27af5aff4df03c1836201d7e045ef137454a6af Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 17 Jun 2013 14:31:48 +0000 Subject: Display report on STDERR in case of error --- lib/MGA/Advisories.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index cdba96f..d321017 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -292,7 +292,7 @@ sub send_report { ); try_to_sendmail($email); } else { - print $reportcontent; + print { $advdb->{error} ? *STDERR : *STDOUT } $reportcontent; } } -- cgit v1.2.1