Permalink
Browse files

Send original error code along with PDO Exception in connect(), closes

  • Loading branch information...
1 parent d34de2a commit 8929335c2b4b2cd70566ec555782a899fed6f4a0 @gabordemooij committed May 9, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 RedBean/Driver/PDO.php
  2. +2 −2 RedBean/Facade.php
View
@@ -103,7 +103,7 @@ public function connect() {
$this->pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
$this->isConnected = true;
} catch(PDOException $e) {
- throw new PDOException('Could not connect to database.');
+ throw new PDOException('Could not connect to database.', $e->getCode());
}
}
/**
View
@@ -3,7 +3,7 @@
* RedBean Facade
*
* Version Information
- * RedBean Version @version 3.4.2
+ * RedBean Version @version 3.4.4
*
* @file RedBean/Facade.php
* @desc Convenience class for RedBeanPHP.
@@ -80,7 +80,7 @@ class RedBean_Facade {
* @return string
*/
public static function getVersion() {
- return '3.4.3';
+ return '3.4.4';
}
/**
* Kickstarts redbean for you. This method should be called before you start using

0 comments on commit 8929335

Please sign in to comment.