Skip to content

Commit 3f55788

Browse files
committed
Improves exception handling in ReadListener to throw also previous exception
1 parent a79aee4 commit 3f55788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EventListener/ReadListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function onKernelRequest(GetResponseEvent $event)
101101
$data = $this->getSubresourceData($identifiers, $attributes, $context);
102102
}
103103
} catch (InvalidIdentifierException $e) {
104-
$data = null;
104+
throw new NotFoundHttpException('Not found, because of an invalid identifier configuration', $e);
105105
}
106106

107107
if (null === $data) {

0 commit comments

Comments
 (0)