Skip to content

Commit dfb5883

Browse files
Merge branch '3.4' into 4.4
* 3.4: Fix exception messages containing exception messages
2 parents 245b822 + db4fc9e commit dfb5883

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, $name, array $optio
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)