diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-06-17 14:31:48 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-06-17 14:31:48 +0000 |
commit | a27af5aff4df03c1836201d7e045ef137454a6af (patch) | |
tree | ce44c66f6b925405a48835c6869a496285801400 /lib | |
parent | d0d24cf9ec92d687e771c5b4061bb61ae5d31720 (diff) | |
download | mgaadvisories-a27af5aff4df03c1836201d7e045ef137454a6af.tar mgaadvisories-a27af5aff4df03c1836201d7e045ef137454a6af.tar.gz mgaadvisories-a27af5aff4df03c1836201d7e045ef137454a6af.tar.bz2 mgaadvisories-a27af5aff4df03c1836201d7e045ef137454a6af.tar.xz mgaadvisories-a27af5aff4df03c1836201d7e045ef137454a6af.zip |
Display report on STDERR in case of error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MGA/Advisories.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |