diff options
author | Evan Prodromou <evan@status.net> | 2010-04-07 10:43:14 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-07 10:43:14 -0400 |
commit | 82326a3b690552cccd8c82950b7653556f6522c1 (patch) | |
tree | e3be6d7c2cd84c2603e1c95744b3268845269979 /classes | |
parent | dbaa93d1aa92561674a3071e6429b0f708a37cb4 (diff) |
show PEAR_Error message, not the object
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Memcached_DataObject.php | 3 |
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"); } |