Skip to content
Snippets Groups Projects
Commit 477e6e2b authored by Georg Ringer's avatar Georg Ringer Committed by Stefan Bürk
Browse files

[TASK] Add exception message to log message

Providing the exception message helps to understand and solve the
issue as the exception can also be thrown by a 3rd party extension.

Resolves: #97770
Releases: main, 11.5
Change-Id: I53ff25a141c3d3b522d5eabd270309dbdda7709f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74967


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: default avatarFelix P. <f.pachowsky@neusta.de>
Tested-by: default avatarStefan Froemken <froemken@gmail.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: default avatarJörg Bösche <typo3@joergboesche.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarFelix P. <f.pachowsky@neusta.de>
Reviewed-by: default avatarStefan Froemken <froemken@gmail.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent d1138fda
Branches
Tags
No related merge requests found
......@@ -1095,7 +1095,7 @@ class ExtendedFileUtility extends BasicFileUtility
$this->writeLog(SystemLogFileAction::UPLOAD, SystemLogErrorClassification::USER_ERROR, 'No unique filename available in "{destination}"', ['destination' => $targetFolderObject->getIdentifier()]);
$this->addMessageToFlashMessageQueue('FileUtility.NoUniqueFilenameAvailableIn', [$targetFolderObject->getIdentifier()]);
} catch (\RuntimeException $e) {
$this->writeLog(SystemLogFileAction::UPLOAD, SystemLogErrorClassification::USER_ERROR, 'Uploaded file could not be moved. Write-permission problem in "{destination}"?', ['destination' => $targetFolderObject->getIdentifier()]);
$this->writeLog(SystemLogFileAction::UPLOAD, SystemLogErrorClassification::USER_ERROR, 'Uploaded file could not be moved. Write-permission problem in "{destination}"? Error: {error}', ['destination' => $targetFolderObject->getIdentifier(), 'error' => $e->getMessage()]);
$this->addMessageToFlashMessageQueue('FileUtility.UploadedFileCouldNotBeMoved', [$targetFolderObject->getIdentifier()]);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment