[open-ils-commits] r10683 -
trunk/Open-ILS/src/perlmods/OpenILS/Utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 22 12:09:59 EDT 2008
Author: erickson
Date: 2008-09-22 12:09:57 -0400 (Mon, 22 Sep 2008)
New Revision: 10683
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
Log:
treat a "failed" request as an exception
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm 2008-09-22 16:09:05 UTC (rev 10682)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm 2008-09-22 16:09:57 UTC (rev 10683)
@@ -312,7 +312,12 @@
} 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;
More information about the open-ils-commits
mailing list