summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-07 10:28:37 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-07 10:28:37 -0500
commit6801f82d090195573972e15d3cda96b0fde24460 (patch)
treec441d8ca8f284fd0b0f2d16c822f6256274eeffc /lib/db.php
parentd0a50fae8317e4b4871027ee4b2940ab5443961f (diff)
parentd0377b1951a156e218ca0200340e2bcfb51ac0c8 (diff)
downloadnextcloud-server-6801f82d090195573972e15d3cda96b0fde24460.tar.gz
nextcloud-server-6801f82d090195573972e15d3cda96b0fde24460.zip
Merge branch 'filesystem' into filesystem-etags
Conflicts: lib/files/cache/cache.php
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/db.php b/lib/db.php
index 7e60b41d230..74e7ca5b0e0 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -495,8 +495,9 @@ class OC_DB {
if (PEAR::isError($previousSchema)) {
$error = $previousSchema->getMessage();
$detail = $previousSchema->getDebugInfo();
- OC_Log::write('core', 'Failed to get existing database structure for upgrading ('.$error.', '.$detail.')', OC_Log::FATAL);
- return false;
+ $message = 'Failed to get existing database structure for updating ('.$error.', '.$detail.')';
+ OC_Log::write('core', $message, OC_Log::FATAL);
+ throw new Exception($message);
}
// Make changes and save them to an in-memory file
@@ -523,8 +524,9 @@ class OC_DB {
if (PEAR::isError($op)) {
$error = $op->getMessage();
$detail = $op->getDebugInfo();
- OC_Log::write('core', 'Failed to update database structure ('.$error.', '.$detail.')', OC_Log::FATAL);
- return false;
+ $message = 'Failed to update database structure ('.$error.', '.$detail.')';
+ OC_Log::write('core', $message, OC_Log::FATAL);
+ throw new Exception($message);
}
return true;
}