diff options
Diffstat (limited to 'lib/private/files/objectstore')
-rw-r--r-- | lib/private/files/objectstore/objectstorestorage.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index 241864bcccd..ae8bff52896 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -349,7 +349,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { public function writeBack($tmpFile) { if (!isset(self::$tmpFiles[$tmpFile])) { - return false; + return; } $path = self::$tmpFiles[$tmpFile]; @@ -375,9 +375,8 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { } catch (\Exception $ex) { $this->getCache()->remove($path); \OCP\Util::writeLog('objectstore', 'Could not create object: ' . $ex->getMessage(), \OCP\Util::ERROR); - return false; + throw $ex; // make this bubble up } - return true; } /** |