Throw exception for page not found

This commit is contained in:
Frederic Guillot
2015-10-17 10:59:07 -04:00
parent 8c532efd5f
commit 3543f45c2d
4 changed files with 19 additions and 6 deletions

View File

@@ -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());
}
}