forked from GNUsocial/gnu-social
Merge branch '1.0.x' into 1.1.x
Conflicts: lib/framework.php
This commit is contained in:
@@ -151,6 +151,14 @@ function PEAR_ErrorToPEAR_Exception($err)
|
||||
if ($err->getCode() == DB_DATAOBJECT_ERROR_NODATA) {
|
||||
return;
|
||||
}
|
||||
|
||||
$msg = $err->getMessage();
|
||||
$userInfo = $err->getUserInfo();
|
||||
|
||||
// Log this; push the message up as an exception
|
||||
|
||||
common_log(LOG_ERR, "PEAR Error: $msg ($userInfo)");
|
||||
|
||||
if ($err->getCode()) {
|
||||
throw new PEAR_Exception($err->getMessage(), $err->getCode());
|
||||
}
|
||||
|
Reference in New Issue
Block a user