Skip to content

Commit

Permalink
Merge pull request #2328 from timonf/2.3
Browse files Browse the repository at this point in the history
(Very small improvement) Improves exception handling in ReadListener
  • Loading branch information
dunglas authored Nov 16, 2018
2 parents 3d05ca6 + 3f55788 commit 84887fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/ReadListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function onKernelRequest(GetResponseEvent $event)
$data = $this->getSubresourceData($identifiers, $attributes, $context);
}
} catch (InvalidIdentifierException $e) {
$data = null;
throw new NotFoundHttpException('Not found, because of an invalid identifier configuration', $e);
}

if (null === $data) {
Expand Down

0 comments on commit 84887fc

Please sign in to comment.