From c7054f374ca0d77df12df513426e583e7fba4e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 12 Sep 2012 23:03:12 +0200 Subject: [PATCH] log details for an error when upgrading the schema --- lib/db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index 4317f79848..bfb8e4afbd 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; }