We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7622faf commit c1d89d7Copy full SHA for c1d89d7
Model/Document/Operation/CreateFromFile.php
@@ -51,7 +51,7 @@ public function execute(DocumentTypeInterface $documentType, string $file): Docu
51
return $this->documentRepository->save($document);
52
} catch (CouldNotSaveException $e) {
53
$this->fileHelper->moveFile($destFilePath, $file);
54
- throw $e;
+ throw $e->getPrevious() ?? $e;
55
}
56
57
0 commit comments