summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJamie Cressey <jayc89@users.noreply.github.com>2015-03-10 15:06:48 +0000
committerJamie Cressey <jayc89@users.noreply.github.com>2015-03-10 15:06:48 +0000
commitb36eb35aad8006ea6075d46fcaea57f6d7b4fe23 (patch)
tree68a396850b0248863ce4462341291b52419ab6b6
parent6beaff2ae2d5154190e0c1890a62734a4ace4136 (diff)
downloadphp-mysql-pdo-database-class-b36eb35aad8006ea6075d46fcaea57f6d7b4fe23.zip
php-mysql-pdo-database-class-b36eb35aad8006ea6075d46fcaea57f6d7b4fe23.tar.gz
php-mysql-pdo-database-class-b36eb35aad8006ea6075d46fcaea57f6d7b4fe23.tar.bz2
Update Db.class.php
We should be capturing exceptions in our code, not printing meaningless text
-rw-r--r--Db.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Db.class.php b/Db.class.php
index 7e41d01..ca5d0b2 100644
--- a/Db.class.php
+++ b/Db.class.php
@@ -271,8 +271,8 @@ class DB
}
# Write into log
$this->log->write($message);
-
- return $exception;
+ throw new Exception($message);
+ #return $exception;
}
}
?>