summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-12-04 17:43:47 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-12-04 17:43:47 +0100
commit158ccca896754ce1dbb7885aba3212a852a7bed9 (patch)
treed85ce23370c7c95894c30f45f5a0d3031a11b84c /lib/Travelynx/Controller
parent5f8cc31238bcc77aad019a751e70e92ede9fead1 (diff)
Add a separate error message for gateway timeouts
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 0a94a1e..101ae11 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -1136,6 +1136,13 @@ sub station {
status => 502
);
}
+ elsif ( $err =~ m{timeout}i ) {
+ $self->render(
+ 'gateway_timeout',
+ message => $err,
+ status => 504
+ );
+ }
else {
$self->render(
'exception',