summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-09-12 23:03:12 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-09-12 23:03:56 +0200
commitc7054f374ca0d77df12df513426e583e7fba4e3c (patch)
tree0795f02b597f41f155fe5f3b8e480c92b9470a37 /lib/db.php
parent53b0e6dcc1c3d13ccf61ad35be74b774f97375d1 (diff)
downloadnextcloud-server-c7054f374ca0d77df12df513426e583e7fba4e3c.tar.gz
nextcloud-server-c7054f374ca0d77df12df513426e583e7fba4e3c.zip
log details for an error when upgrading the schema
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;
}