From 3c9ae41dab05c6f4aedb8ba769b40034d917092b Mon Sep 17 00:00:00 2001 From: Thomas Misilo <misilot@users.noreply.github.com> Date: Tue, 19 Jul 2016 14:01:51 -0400 Subject: [PATCH] Throw ILSExceptions to allow NoILS to Work (#759) --- module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php index 62ffeb1000a..0ac050c2355 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php @@ -238,8 +238,8 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements // set communication enoding to utf8 $this->db->exec("SET NAMES utf8"); } catch (PDOException $e) { - echo 'Connection failed: ' . $e->getMessage(); $this->debug('Connection failed: ' . $e->getMessage()); + throw new ILSException($e->getMessage); } $this->debug('Connected to DB'); @@ -687,6 +687,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements $sqlStmtHoldings->execute([':id' => $id]); } catch (PDOException $e) { $this->debug('Connection failed: ' . $e->getMessage()); + throw new ILSException($e->getMessage); } $this->debug("Rows count: " . $itemSqlStmt->rowCount()); -- GitLab