forked from GNUsocial/gnu-social
show PEAR_Error message, not the object
This commit is contained in:
parent
dbaa93d1aa
commit
82326a3b69
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user