Skip to content

Commit c56837a

Browse files
Merge branch '4.4' into 5.0
* 4.4: Fix exception messages containing exception messages
2 parents a57a658 + dfb5883 commit c56837a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ResolvedFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function createBuilder(FormFactoryInterface $factory, string $name, array
9696
try {
9797
$options = $this->getOptionsResolver()->resolve($options);
9898
} catch (ExceptionInterface $e) {
99-
throw new $e(sprintf('An error has occurred resolving the options of the form "%s": '.$e->getMessage(), \get_class($this->getInnerType())), $e->getCode(), $e);
99+
throw new $e(sprintf('An error has occurred resolving the options of the form "%s": ', \get_class($this->getInnerType())).$e->getMessage(), $e->getCode(), $e);
100100
}
101101

102102
// Should be decoupled from the specific option at some point

0 commit comments

Comments
 (0)