throw exception in writeBack, the returned boolean is checked nowhere

remotes/origin/fix-10825
Jörn Friedrich Dreyer 12 years ago
parent 9b0f0df7f5
commit ca0e3fdfea
  1. 5
      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;
}
/**

Loading…
Cancel
Save