diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:59:07 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:59:07 -0400 |
commit | 3543f45c2d4d6e96e5b88c3168075c0d583fc261 (patch) | |
tree | 7f56a1193dacb072d4955f29e9bb1111f6896117 /app/Core/Plugin | |
parent | 8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (diff) |
Throw exception for page not found
Diffstat (limited to 'app/Core/Plugin')
-rw-r--r-- | app/Core/Plugin/Loader.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Core/Plugin/Loader.php b/app/Core/Plugin/Loader.php index e68ba8e6..4769e5cb 100644 --- a/app/Core/Plugin/Loader.php +++ b/app/Core/Plugin/Loader.php @@ -4,6 +4,7 @@ namespace Kanboard\Core\Plugin; use DirectoryIterator; use PDOException; +use RuntimeException; use Kanboard\Core\Tool; /** @@ -111,7 +112,7 @@ class Loader extends \Kanboard\Core\Base } catch (PDOException $e) { $this->db->cancelTransaction(); $this->db->getDriver()->enableForeignKeys(); - die('Unable to migrate schema for the plugin: '.$plugin.' => '.$e->getMessage()); + throw new RuntimeException('Unable to migrate schema for the plugin: '.$plugin.' => '.$e->getMessage()); } } |