diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-08 18:02:42 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-16 14:10:28 +0200 |
commit | 61873e4e218c4dcde8bb13d35c0bfec8a94267ed (patch) | |
tree | 6cdc75ebb016a39857cc8001231e42cac140d2d4 /lib/private | |
parent | 6d4d5400d76952495483ba0ce6236586694f193b (diff) | |
download | nextcloud-server-61873e4e218c4dcde8bb13d35c0bfec8a94267ed.tar.gz nextcloud-server-61873e4e218c4dcde8bb13d35c0bfec8a94267ed.zip |
throw exception in writeBack, the returned boolean is checked nowhere
Diffstat (limited to 'lib/private')
-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; } /** |