Skip to content

Commit

Permalink
Send original error code along with PDO Exception in connect(), closes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed May 9, 2013
1 parent d34de2a commit 8929335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RedBean/Driver/PDO.php
Expand Up @@ -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());
}
}
/**
Expand Down
4 changes: 2 additions & 2 deletions RedBean/Facade.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8929335

Please sign in to comment.