]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Memcached_DataObject.php
UserRSS Didn't Use the Tag Propery.
[quix0rs-gnu-social.git] / classes / Memcached_DataObject.php
index 40576dc71783aedda343e8ea25414b11f777e70e..bc4c3a000ce11a732bc495e878fc018854dcd79d 100644 (file)
@@ -501,7 +501,11 @@ class Memcached_DataObject extends Safe_DataObject
 
     function raiseError($message, $type = null, $behaviour = null)
     {
-        throw new ServerException("DB_DataObject error [$type]: $message");
+        $id = get_class($this);
+        if ($this->id) {
+            $id .= ':' . $this->id;
+        }
+        throw new ServerException("[$id] DB_DataObject error [$type]: $message");
     }
 
     static function cacheGet($keyPart)