Skip to content

Commit af9c5f4

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 af9c5f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function denormalize($data, $class, $format = null, array $context = [])
3737
return Uuid::fromString($data);
3838
} catch (InvalidUuidStringException $e) {
3939
throw new NotNormalizableValueException('Not found, because of an invalid identifier format', $e->getCode(), $e);
40+
throw new InvalidIdentifierException($e->getMessage(), 404, $e);
4041
}
4142
}
4243

0 commit comments

Comments
 (0)