mirror of
https://github.com/derf/travelynx
synced 2024-12-05 02:39:10 +00:00
add journey: return HTTP 400 on input error
This commit is contained in:
parent
c969019bb3
commit
c290077471
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue