From bc06221dd823c547305e3cba15e5bd9ffabf2022 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 3 Nov 2025 17:26:14 +0100 Subject: [PATCH] feat: add fileid to exception message when reading a dav file fails Signed-off-by: Robin Appelman --- apps/dav/lib/Connector/Sabre/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index d2a71eb3e7b8a..875dcb7b17713 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -467,9 +467,9 @@ public function get() { 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()])); } }