diff options
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 9 |
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) } ); |