Skip to content

Commit d21fa1c

Browse files
committed
feat: add fileid to exception message when reading a dav file fails
Signed-off-by: Robin Appelman <[email protected]>
1 parent 6a2e0f8 commit d21fa1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dav/lib/Connector/Sabre/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,9 @@ public function get() {
468468

469469
if ($res === false) {
470470
if ($this->fileView->file_exists($path)) {
471-
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s, file does seem to exist', [$path]));
471+
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s (%2$d), file does seem to exist', [$path, $this->info->getId()]));
472472
} else {
473-
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s, file doesn\'t seem to exist', [$path]));
473+
throw new ServiceUnavailable($this->l10n->t('Could not open file: %1$s (%2$d), file doesn\'t seem to exist', [$path, $this->info->getId()]));
474474
}
475475
}
476476

0 commit comments

Comments
 (0)