fix: show actual error message

This commit is contained in:
Björn Fromme
2026-03-16 12:02:27 +01:00
parent 00304facba
commit 8186adfaeb
@@ -106,7 +106,9 @@ class IndexController extends AbstractController
// Redirect to login page (optional authentication before Step 1)
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'));
}
}