From 41b232d84b944d3c6e3abe99153528dd02951a93 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Sep 2011 13:40:51 +0200 Subject: VRR.pm: Only die when getting invalid arguments, set ->errstr for request errors --- bin/efa-m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/efa-m b/bin/efa-m index def9f07..a094de2 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -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, -- cgit v1.2.3