]> source.dussan.org Git - nextcloud-server.git/commitdiff
log details for an error when upgrading the schema
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 12 Sep 2012 21:03:12 +0000 (23:03 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 12 Sep 2012 21:03:56 +0000 (23:03 +0200)
lib/db.php

index 4317f7984843bdd782dca3807f1b6390456fb03c..bfb8e4afbd0f89fede38118bd9694679a83a0a05 100644 (file)
@@ -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;
                }