Merge pull request #56166 from nextcloud/dav-file-get-log-id

feat: add fileid to exception message when reading a dav file fails
This commit is contained in:
Robin Appelman 2026-01-02 15:30:22 +01:00 committed by GitHub
commit 3580680f8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()]));
}
}