From cede5d5434e4e50145daf2413c962a335c13cc99 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 10 Sep 2014 16:51:44 +0200 Subject: Fix Mysql and Postgresql bug --- app/common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/common.php') 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:

'.(isset($errors[0]) ? $errors[0] : 'Unknown error').''); } }; -- cgit v1.2.3