Skip to content
Snippets Groups Projects
Commit 3c9ae41d authored by Thomas Misilo's avatar Thomas Misilo Committed by Demian Katz
Browse files

Throw ILSExceptions to allow NoILS to Work (#759)

parent 6539e0bd
No related merge requests found
...@@ -238,8 +238,8 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements ...@@ -238,8 +238,8 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements
// set communication enoding to utf8 // set communication enoding to utf8
$this->db->exec("SET NAMES utf8"); $this->db->exec("SET NAMES utf8");
} catch (PDOException $e) { } catch (PDOException $e) {
echo 'Connection failed: ' . $e->getMessage();
$this->debug('Connection failed: ' . $e->getMessage()); $this->debug('Connection failed: ' . $e->getMessage());
throw new ILSException($e->getMessage);
} }
$this->debug('Connected to DB'); $this->debug('Connected to DB');
...@@ -687,6 +687,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements ...@@ -687,6 +687,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements
$sqlStmtHoldings->execute([':id' => $id]); $sqlStmtHoldings->execute([':id' => $id]);
} catch (PDOException $e) { } catch (PDOException $e) {
$this->debug('Connection failed: ' . $e->getMessage()); $this->debug('Connection failed: ' . $e->getMessage());
throw new ILSException($e->getMessage);
} }
$this->debug("Rows count: " . $itemSqlStmt->rowCount()); $this->debug("Rows count: " . $itemSqlStmt->rowCount());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment