aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2017-07-05 21:07:57 -0400
committerKevin J Hoerr <kjhoerr@protonmail.com>2017-07-05 21:07:57 -0400
commit3b75177580e536ce309d44759eb4d1f772c987ce (patch)
tree2dae9088cc127b62d1c915d1edf304e142b8822d
parent3a9ea9453c464552e3a53138f79550949c329c21 (diff)
downloadaugust-offensive-3b75177580e536ce309d44759eb4d1f772c987ce.tar.gz
august-offensive-3b75177580e536ce309d44759eb4d1f772c987ce.tar.bz2
august-offensive-3b75177580e536ce309d44759eb4d1f772c987ce.zip
Report PDO error correctly
-rw-r--r--private/model/Connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/private/model/Connection.php b/private/model/Connection.php
index 32cbf33..42cba28 100644
--- a/private/model/Connection.php
+++ b/private/model/Connection.php
@@ -34,7 +34,7 @@ class Connection
} catch (\PDOException $e) {
// we destroy $cred as quickly as possible
$cred = null;
- die(json_encode(array("Result-Type" => "Error", "Content" => array($e))));
+ die(json_encode(array("Result-Type" => "Error", "Content" => array($e->getMessage()))));
}
return $this;
}