Skip to content

Commit 2574ee2

Browse files
committed
Update thrown error code to 404.
I overlooked the behat test which fails since I didn't update the error code which is thrown by the exception.
1 parent fbf69f0 commit 2574ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridge/RamseyUuid/Identifier/Normalizer/UuidNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function denormalize($data, $class, $format = null, array $context = [])
3636
try {
3737
return Uuid::fromString($data);
3838
} catch (InvalidUuidStringException $e) {
39-
throw new NotNormalizableValueException('Not found, because of an invalid identifier format', $e->getCode(), $e);
39+
throw new NotNormalizableValueException('Not found, because of an invalid identifier format', 404, $e);
4040
}
4141
}
4242

0 commit comments

Comments
 (0)