summaryrefslogtreecommitdiff
path: root/app/common.php
diff options
context:
space:
mode:
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>');
}
};