8000 [Serializer] Improve exception message in UnwrappingDenormalizer · symfony/symfony@3c96bfb · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c96bfb

Browse files
andersonamullerfabpot
authored andcommitted
[Serializer] Improve exception message in UnwrappingDenormalizer
1 parent b49df79 commit 3c96bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Context/Normalizer/UnwrappingDenormalizerContextBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function withUnwrapPath(?string $unwrapPath): static
4545
try {
4646
new PropertyPath($unwrapPath);
4747
} catch (InvalidPropertyPathException $e) {
48-
throw new InvalidArgumentException('The "%s" property path is not valid.', previous: $e);
48+
throw new InvalidArgumentException(sprintf('The "%s" property path is not valid.', $unwrapPath), previous: $e);
4949
}
5050

5151
return $this->with(UnwrappingDenormalizer::UNWRAP_PATH, $unwrapPath);

0 commit comments

Comments
 (0)
0