Skip to content

Commit a039fb6

Browse files
committed
feat: add fileid to exception message when reading a dav file fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 76d878e commit a039fb6

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
@@ -467,9 +467,9 @@ public function get() {
467467

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

0 commit comments

Comments
 (0)