aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/Advisories.pm2
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;
}
}