treat a "failed" request as an exception
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Utils / CStoreEditor.pm
index c6c4196..abcb515 100644 (file)
@@ -312,7 +312,12 @@ sub request {
 
         } else {
             my $resp = $req->recv(timeout => $self->timeout);
-            $val = $resp->content;
+            if($req->failed) {
+                $err = $resp;
+                       $self->log(E, "request error $method : $argstr : $err");
+            } else {
+                $val = $resp->content;
+            }
         }
 
         $req->finish;