additional logging when db upgrade fails

This commit is contained in:
Robin Appelman 2012-05-13 21:21:39 +02:00
parent 68fd5a5d58
commit 8d475debe0

View file

@ -395,7 +395,8 @@ class OC_DB {
if (PEAR::isError($op)) {
$error = $op->getMessage();
OC_Log::write('core','Failed to update database structure ('.$error.')',OC_Log::FATAL);
$detail = $op->getDebugInfo();
OC_Log::write('core','Failed to update database structure ('.$error.', '.$detail.')',OC_Log::FATAL);
return false;
}
return true;