Commit b5903a08 authored by Marc Bastian Heinrichs's avatar Marc Bastian Heinrichs Committed by Anja Leichsenring
Browse files

[BUGFIX] Make single errors from FileSizeValidator translatable

Hand over the original error code from the validator instead of
setting a new one.

Resolves: #87042
Releases: master, 9.5
Change-Id: Ifbb023423934832fdea2550aa7d3a55507616e73

Tested-by: default avatarTYPO3com <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <>
parent ad4f700d
......@@ -17,6 +17,7 @@ ignoreFiles+="sysext/core/Tests/Acceptance/Support/_generated/BackendTesterActio
# a exception in here throws up an code from a previous exception
......@@ -84,4 +85,4 @@ do
done || exit 1
exit 0
\ No newline at end of file
exit 0
......@@ -209,7 +209,7 @@ class UploadedFileReferenceConverter extends AbstractTypeConverter
$validationResult = $validator->validate($uploadedFile);
if ($validationResult->hasErrors()) {
throw new TypeConverterException($validationResult->getErrors()[0]->getMessage(), 1471708999);
throw new TypeConverterException($validationResult->getErrors()[0]->getMessage(), $validationResult->getErrors()[0]->getCode());
Supports Markdown
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