fix: show actual error message

This commit is contained in:
Björn Fromme
2026-01-07 20:30:58 +01:00
parent 365658d727
commit 936004bc2d
@@ -106,7 +106,9 @@ class IndexController extends AbstractController
// Redirect to login page (optional authentication before Step 1) // Redirect to login page (optional authentication before Step 1)
return $this->htmxRedirect($request, $this->generateUrl('app_login')); return $this->htmxRedirect($request, $this->generateUrl('app_login'));
} catch (TravelNotFoundException|HotelNotFoundException|HotelNotInTravelException|NoRoomsAvailableException) { } catch (TravelNotFoundException|HotelNotFoundException|HotelNotInTravelException|NoRoomsAvailableException $e) {
$this->addFlash('error', $e->getMessage());
return $this->htmxRedirect($request, $this->generateUrl('app_booking_create_error')); return $this->htmxRedirect($request, $this->generateUrl('app_booking_create_error'));
} }
} }