Skip to content

Commit 9f88922

Browse files
author
Rune Kocher
committed
Implement requested code optimizations #523
1 parent 31f9abe commit 9f88922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Form/Type/DynamicFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function ($runtimeData) {
9292
function ($runtimeData) {
9393
try {
9494
return empty($runtimeData) ? null : json_decode($runtimeData, true, 512, JSON_THROW_ON_ERROR);
95-
} catch (\jsonException $e) {
96-
throw new TransformationFailedException('', 0, $e);
95+
} catch (\JsonException $exception) {
96+
throw new TransformationFailedException('Invalid runtime data JSON.', $exception->getCode(), $exception);
9797
}
9898
}
9999
));

0 commit comments

Comments
 (0)