Skip to content

Commit d82aff1

Browse files
Merge branch '4.4' into 5.0
* 4.4: Fix exception messages containing exception messages
2 parents 7874a50 + 7b27e1b commit d82aff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function denormalize($data, string $type, string $format = null, array $c
332332
try {
333333
$this->setAttributeValue($object, $attribute, $value, $format, $context);
334334
} catch (InvalidArgumentException $e) {
335-
throw new NotNormalizableValueException(sprintf('Failed to denormalize attribute "%s" value for class "%s": '.$e->getMessage(), $attribute, $type), $e->getCode(), $e);
335+
throw new NotNormalizableValueException(sprintf('Failed to denormalize attribute "%s" value for class "%s": ', $attribute, $type).$e->getMessage(), $e->getCode(), $e);
336336
}
337337
}
338338

0 commit comments

Comments
 (0)