diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-09-11 13:40:51 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-09-11 13:41:15 +0200 |
commit | 41b232d84b944d3c6e3abe99153528dd02951a93 (patch) | |
tree | faa9dab207b3f6895dd230dbb977763e89a4cd71 /bin | |
parent | 4ab8c3cc012f4154c79428243d62f94938d7563a (diff) |
VRR.pm: Only die when getting invalid arguments, set ->errstr for request errors
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa-m | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -88,6 +88,11 @@ sub display_result { return; } +if ( my $err = $status->errstr ) { + say STDERR "Request error: ${err}"; + exit 2; +} + for my $d ( $status->results ) { push( @output, |