From 82326a3b690552cccd8c82950b7653556f6522c1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 7 Apr 2010 10:43:14 -0400 Subject: [PATCH] show PEAR_Error message, not the object --- classes/Memcached_DataObject.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index bc4c3a000c..920966b16d 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"); } -- 2.39.5