summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-20 18:33:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-20 18:33:59 +0100
commite7f278574fa1c5f8896791c9444868b7f60760e3 (patch)
tree80a9ac43dafb56dcaad92557588b3d437849ada2 /lib/Travelynx/Controller
parent11a2e94a04bf451a1b8411daa18d8f340a12a9c6 (diff)
more travel API documentation
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Api.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm
index f95caa3..427fa2e 100755
--- a/lib/Travelynx/Controller/Api.pm
+++ b/lib/Travelynx/Controller/Api.pm
@@ -281,7 +281,8 @@ sub travel_v1 {
$self->render(
json => {
success => \0,
- error => 'Fehler am Abfahrtsbahnhof: '
+ error =>
+ 'Error requesting departures from fromStation: '
. $status->{errstr},
status => $self->get_user_status_json_v1($uid)
}
@@ -297,7 +298,7 @@ sub travel_v1 {
json => {
success => \0,
deprecated => \0,
- error => 'Zug nicht gefunden',
+ error => 'Train not found at fromStation',
status => $self->get_user_status_json_v1($uid)
}
);
@@ -320,7 +321,7 @@ sub travel_v1 {
json => {
success => \0,
deprecated => \0,
- error => $error,
+ error => 'Checkin/Checkout error: ' . $error,
status => $self->get_user_status_json_v1($uid)
}
);
@@ -362,7 +363,7 @@ sub travel_v1 {
json => {
success => \0,
deprecated => \0,
- error => $error,
+ error => 'Checkout error: ' . $error,
status => $self->get_user_status_json_v1($uid)
}
);