diff options
author | Othmar Gsenger <otti@wirdorange.org> | 2011-01-15 17:51:03 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@wirdorange.org> | 2011-01-15 17:51:03 +0000 |
commit | 5d4116fc7e4ec30c92f57fa33d38da628a4be13d (patch) | |
tree | d9cfca9b351d43ae9d44bd2d792d39c9d3afa372 | |
parent | stylerei (diff) |
better error message on invalid xml in log xml::roc
-rwxr-xr-x | log.pl | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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}]); |