diff options
Diffstat (limited to 'app/Core/Plugin/Loader.php')
-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()); } } |