Still throw a locked exception when the path is not relative to $user/files/
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
b7768ac11d
commit
9cae892974
|
@ -1950,11 +1950,18 @@ class View {
|
|||
);
|
||||
}
|
||||
} catch (\OCP\Lock\LockedException $e) {
|
||||
// rethrow with the a human-readable path
|
||||
throw new \OCP\Lock\LockedException(
|
||||
$this->getPathRelativeToFiles($absolutePath),
|
||||
$e
|
||||
);
|
||||
try {
|
||||
// rethrow with the a human-readable path
|
||||
throw new \OCP\Lock\LockedException(
|
||||
$this->getPathRelativeToFiles($absolutePath),
|
||||
$e
|
||||
);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
throw new \OCP\Lock\LockedException(
|
||||
$absolutePath,
|
||||
$e
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue