summaryrefslogtreecommitdiff
path: root/rhimport-dn
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-01-13 19:58:32 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-01-13 19:58:32 (GMT)
commit84339c2313d05f9a16913abe130f8cfed9bbd094 (patch)
tree46025af0e8acfd0c6339c8b28ca430b9192a3727 /rhimport-dn
parenta0b23f7c6189f941f12f0ef27dda7a7a4c930709 (diff)
also print STDERR on addnote command
Diffstat (limited to 'rhimport-dn')
-rwxr-xr-xrhimport-dn3
1 files changed, 2 insertions, 1 deletions
diff --git a/rhimport-dn b/rhimport-dn
index b650f24..b228bf0 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -145,12 +145,13 @@ for my $entry ($headlines_feed->entries) {
close $writer;
waitpid $pid, 0;
if ( $? >> 8 ) {
- print "\n\nPV: adding note failed\n";
+ print "\n\nPV: adding note returned non-zero value\n";
print "STDERR:\n" . join('', <$error>) . "\n";
print "STDOUT:\n" . join('', <$reader>) . "\n";
print "Ignoring failed headline import!\n";
} else {
print join('', <$reader>) . "\n";
+ print join('', <$error>) . "\n";
}
print "\n";
}