Skip to content

Commit

Permalink
on utilise une exception moins générique
Browse files Browse the repository at this point in the history
  • Loading branch information
jerlio committed Jul 4, 2024
1 parent 0de745c commit 2da1b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/AppBundle/Controller/SponsorScanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function deleteAction(Request $request, $eventSlug, $scanId)
$this->checkEventSlug($eventSlug);
try {
$sponsorTicket = $this->checkSponsorTicket($request);
} catch (\Exception $e) {
} catch (InvalidSponsorTokenException $e) {
$this->addFlash('error', $e->getMessage());
return $this->redirectToRoute('sponsor_ticket_home', ['eventSlug' => $eventSlug]);
}
Expand Down

0 comments on commit 2da1b53

Please sign in to comment.