log details for an error when upgrading the schema
This commit is contained in:
parent
53b0e6dcc1
commit
c7054f374c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue