Selaa lähdekoodia

Translate invalid path exception to sabre exception for files

tags/v8.1RC2
Vincent Petry 9 vuotta sitten
vanhempi
commit
6ab38be40e
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      lib/private/connector/sabre/directory.php

+ 2
- 0
lib/private/connector/sabre/directory.php Näytä tiedosto

@@ -104,6 +104,8 @@ class Directory extends \OC\Connector\Sabre\Node
return $node->put($data);
} catch (\OCP\Files\StorageNotAvailableException $e) {
throw new \Sabre\DAV\Exception\ServiceUnavailable($e->getMessage());
} catch (\OCP\Files\InvalidPathException $ex) {
throw new InvalidPath($ex->getMessage());
} catch (LockedException $e) {
throw new FileLocked($e->getMessage(), $e->getCode(), $e);
}

Loading…
Peruuta
Tallenna