log details for an error when upgrading the schema

This commit is contained in:
Jörn Friedrich Dreyer 2012-09-12 23:03:12 +02:00
parent 53b0e6dcc1
commit c7054f374c

View 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;
}