add journey: return HTTP 400 on input error

This commit is contained in:
Birte Kristina Friesel 2024-06-10 21:51:56 +02:00
parent c969019bb3
commit c290077471
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -2112,6 +2112,7 @@ sub add_journey_form {
$self->render(
'add_journey',
with_autocomplete => 1,
status => 400,
error =>
'Zug muss als „Typ Nummer“ oder „Typ Linie Nummer“ eingegeben werden.'
);
@ -2126,6 +2127,7 @@ sub add_journey_form {
$self->render(
'add_journey',
with_autocomplete => 1,
status => 400,
error => "${key}: Ungültiges Datums-/Zeitformat"
);
return;
@ -2167,6 +2169,7 @@ sub add_journey_form {
$self->render(
'add_journey',
with_autocomplete => 1,
status => 400,
error => $error,
);
}