summaryrefslogtreecommitdiff
path: root/app/common.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-10 16:51:44 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-10 16:51:44 +0200
commitcede5d5434e4e50145daf2413c962a335c13cc99 (patch)
tree2e967e7c95884f9cbab880ff7aedc72466e9d47a /app/common.php
parent28ff8dad91c9e3c25f6a3b5398ae15f2a1ef95cd (diff)
Fix Mysql and Postgresql bug
Diffstat (limited to 'app/common.php')
-rw-r--r--app/common.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/common.php b/app/common.php
index f295ab5f..f46e3c6b 100644
--- a/app/common.php
+++ b/app/common.php
@@ -152,7 +152,8 @@ $registry->db = function() use ($registry) {
return $db;
}
else {
- die('Unable to migrate database schema!');
+ $errors = $db->getLogMessages();
+ die('Unable to migrate database schema: <br/><br/><strong>'.(isset($errors[0]) ? $errors[0] : 'Unknown error').'</strong>');
}
};