]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '1.0.x' into 1.1.x
authorEvan Prodromou <evan@status.net>
Wed, 16 Nov 2011 17:00:13 +0000 (12:00 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 16 Nov 2011 17:00:13 +0000 (12:00 -0500)
Conflicts:
lib/framework.php

1  2 
lib/framework.php

index 05a8b7abda7728d8195da5167cbd34dfe4c2c4c0,4458313eb974ea294e9615727916ebc175f9e256..69c1e4f6c8c048058f58b4530e625a8a1df8d25b
@@@ -151,10 -152,19 +151,18 @@@ function PEAR_ErrorToPEAR_Exception($er
      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($msg, $err, $err->getCode());
 -    } else {
 -        throw new PEAR_Exception($msg, $err);
 +        throw new PEAR_Exception($err->getMessage(), $err->getCode());
      }
 +    throw new PEAR_Exception($err->getMessage());
  }
  
  PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'PEAR_ErrorToPEAR_Exception');