Skip to content

Commit 84887fc

Browse files
authored
Merge pull request #2328 from timonf/2.3
(Very small improvement) Improves exception handling in ReadListener
2 parents 3d05ca6 + 3f55788 commit 84887fc

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)