summaryrefslogtreecommitdiff
path: root/classes/Memcached_DataObject.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-07 10:43:14 -0400
committerEvan Prodromou <evan@status.net>2010-04-07 10:43:14 -0400
commit82326a3b690552cccd8c82950b7653556f6522c1 (patch)
treee3be6d7c2cd84c2603e1c95744b3268845269979 /classes/Memcached_DataObject.php
parentdbaa93d1aa92561674a3071e6429b0f708a37cb4 (diff)
show PEAR_Error message, not the object
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r--classes/Memcached_DataObject.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index bc4c3a000..920966b16 100644
--- a/classes/Memcached_DataObject.php
+++ b/classes/Memcached_DataObject.php
@@ -505,6 +505,9 @@ class Memcached_DataObject extends Safe_DataObject
if ($this->id) {
$id .= ':' . $this->id;
}
+ if ($message instanceof PEAR_Error) {
+ $message = $message->getMessage();
+ }
throw new ServerException("[$id] DB_DataObject error [$type]: $message");
}