add some extra debug information when part file renaming failes during upload
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
d26169838e
commit
6eb4a7bb14
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue