Compare commits

...

1 Commits

Author SHA1 Message Date
Robin Appelman 6eb4a7bb14
add some extra debug information when part file renaming failes during upload
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-05-22 15:43:26 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class File extends Node implements IFile {
$fileExists = $storage->file_exists($internalPath);
if ($renameOkay === false || $fileExists === false) {
\OC::$server->getLogger()->error('renaming part file to final file failed $renameOkay: ' . ($renameOkay ? 'true' : 'false') . ', $fileExists: ' . ($fileExists ? 'true' : 'false') . ')', ['app' => 'webdav']);
throw new Exception('Could not rename part file to final file');
throw new Exception('Could not rename part file to final file, from: ' . $partStorage->getId(). '/' . $internalPartPath . ', to: ' . $storage->getId() . '/' . $internalPath);
}
} catch (ForbiddenException $ex) {
throw new DAVForbiddenException($ex->getMessage(), $ex->getRetry());