diff options
Diffstat (limited to 'rhautoimport-oi')
-rwxr-xr-x | rhautoimport-oi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rhautoimport-oi b/rhautoimport-oi index dc32cb9..40b9059 100755 --- a/rhautoimport-oi +++ b/rhautoimport-oi @@ -97,8 +97,11 @@ if($current_id eq $id) { print "looking for files like '$bdfile' in RSS Feed\n"; print " -> $RSS_URL\n"; -my $feed = rhautoimport::fetch_parse_rss($RSS_URL) - or die "Error fetching feed: " . XML::Feed->errstr; +my ($feed, $errstr) = rhautoimport::fetch_parse_rss($RSS_URL); +unless (defined $feed) { + print "Error fetching feed: $errstr\n"; + exit 1; +} my $uri = ""; my $file = ""; |