feat: improved error handling and redirect on invalid session
This commit is contained in:
1 parent
4b95b12a7b
commit
a6d2661562
7 files changed
+48
-12
No files matched your search
@@ -34,7 +34,7 @@ trait BookingExceptionHandlerTrait
|
||||
try {
|
||||
return $bookingService->getOrCreateBookingCreateDto($request);
|
||||
} catch (BookingSessionNotFoundException $e) {
|
||||
$this->addFlash('error', 'Ihre Buchungssitzung ist abgelaufen. Bitte starten Sie eine neue Buchung.');
|
||||
$this->addFlash('error', 'Deine Buchungssitzung ist abgelaufen. Bitte starte eine neue Buchung.');
|
||||
|
||||
return $this->redirectToRoute('app_booking_create_error');
|
||||
} catch (TravelNotFoundException $e) {
|
||||
|
||||
Reference in new issue
Block a user