summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-11 13:40:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-11 13:41:15 +0200
commit41b232d84b944d3c6e3abe99153528dd02951a93 (patch)
treefaa9dab207b3f6895dd230dbb977763e89a4cd71 /bin
parent4ab8c3cc012f4154c79428243d62f94938d7563a (diff)
VRR.pm: Only die when getting invalid arguments, set ->errstr for request errors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa-m5
1 files changed, 5 insertions, 0 deletions
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,