mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
fix: log error when writing stream to dav file
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
47ffc05b0e
commit
2aced4a607
1 changed files with 3 additions and 1 deletions
|
|
@ -213,7 +213,9 @@ class File extends Node implements IFile {
|
|||
try {
|
||||
/** @var IWriteStreamStorage $partStorage */
|
||||
$count = $partStorage->writeStream($internalPartPath, $wrappedData);
|
||||
} catch (GenericFileException) {
|
||||
} catch (GenericFileException $e) {
|
||||
$logger = Server::get(LoggerInterface::class);
|
||||
$logger->error('Error while writing stream to storage: ' . $e->getMessage(), ['exception' => $e, 'app' => 'webdav']);
|
||||
$result = $isEOF;
|
||||
if (is_resource($wrappedData)) {
|
||||
$result = feof($wrappedData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue