summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@wirdorange.org>2011-01-15 17:51:03 +0000
committerOthmar Gsenger <otti@wirdorange.org>2011-01-15 17:51:03 +0000
commit5d4116fc7e4ec30c92f57fa33d38da628a4be13d (patch)
treed9cfca9b351d43ae9d44bd2d792d39c9d3afa372
parentstylerei (diff)
better error message on invalid xml in log xml::roc
-rwxr-xr-xlog.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/log.pl b/log.pl
index 6cdaf40..f4904c7 100755
--- a/log.pl
+++ b/log.pl
@@ -13,6 +13,7 @@ print $menu->start_html('log');
my $cli = new local::nzbget;
print CGI::start_table();
my $resp = $cli->send_request('log',0,10) or die "Can't connect to nubget";
+die $resp if not ref $resp;
foreach my $row (@{ $resp->value})
{
print Tr(td[$row->{Text}]);