diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-05-13 21:21:39 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-05-13 21:21:39 +0200 |
commit | 8d475debe0acbca99d92c492b08aee9b3ea05979 (patch) | |
tree | 63035136f11101626d01b237945727ecad0ce4b4 /lib/db.php | |
parent | 68fd5a5d5872e0a83509ab195057859edfd332ed (diff) | |
download | nextcloud-server-8d475debe0acbca99d92c492b08aee9b3ea05979.tar.gz nextcloud-server-8d475debe0acbca99d92c492b08aee9b3ea05979.zip |
additional logging when db upgrade fails
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php index 9899f30e75c..9f951d645e4 100644 --- a/lib/db.php +++ b/lib/db.php @@ -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; |