mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
feat: add fileid to exception message when reading a dav file fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
6a2e0f819c
commit
d21fa1c0b5
1 changed files with 2 additions and 2 deletions
|
|
@ -468,9 +468,9 @@ class File extends Node implements IFile {
|
|||
|
||||
if ($res === false) {
|
||||
if ($this->fileView->file_exists($path)) {
|
||||
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s, file does seem to exist', [$path]));
|
||||
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s (%2$d), file does seem to exist', [$path, $this->info->getId()]));
|
||||
} else {
|
||||
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s, file doesn\'t seem to exist', [$path]));
|
||||
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s (%2$d), file doesn\'t seem to exist', [$path, $this->info->getId()]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue