summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php
index 4317f798484..bfb8e4afbd0 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -457,7 +457,8 @@ class OC_DB {
$previousSchema = self::$schema->getDefinitionFromDatabase();
if (PEAR::isError($previousSchema)) {
$error = $previousSchema->getMessage();
- OC_Log::write('core', 'Failed to get existing database structure for upgrading ('.$error.')', OC_Log::FATAL);
+ $detail = $previousSchema->getDebugInfo();
+ OC_Log::write('core', 'Failed to get existing database structure for upgrading ('.$error.', '.$detail.')', OC_Log::FATAL);
return false;
}