diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-02-17 21:40:47 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-02-17 21:40:47 +0100 |
commit | 582bfbe661d25ec721a35c795cdd7f5e3f340b04 (patch) | |
tree | 83a7ec409a86546d7571417c113e74ccd3656885 /lib/Travelynx | |
parent | 6d3a0f864981c35f832f62374d25618f355220f1 (diff) |
Traewelling: more consistent error messages
Diffstat (limited to 'lib/Travelynx')
-rw-r--r-- | lib/Travelynx/Command/work.pm | 7 | ||||
-rw-r--r-- | lib/Travelynx/Helper/Traewelling.pm | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 3f8bcd3..8be1cb2 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -257,7 +257,7 @@ sub run { $self->app->traewelling->log( uid => $candidate->{uid}, message => -"Fehler bei $candidate->{train_type} $candidate->{train_no}: Keine trip_id vorhanden", +"Konnte $candidate->{train_type} $candidate->{train_no} nicht übertragen: Keine trip_id vorhanden", is_error => 1 ); next; @@ -293,9 +293,8 @@ sub run { sub { my ($err) = @_; $self->app->traewelling->log( - uid => $account_data->{user_id}, - message => - "Fehler bei der Status-Abfrage von Träwelling: $err", + uid => $account_data->{user_id}, + message => "Fehler bei der Status-Abfrage: $err", is_error => 1 ); $self->app->log->debug("Error $err"); diff --git a/lib/Travelynx/Helper/Traewelling.pm b/lib/Travelynx/Helper/Traewelling.pm index 401d9a6..430ef62 100644 --- a/lib/Travelynx/Helper/Traewelling.pm +++ b/lib/Travelynx/Helper/Traewelling.pm @@ -362,7 +362,7 @@ sub checkin { $self->{model}->log( uid => $opt{uid}, message => -"Checkin-Fehler bei $opt{train_type} $opt{train_no}: $err_msg", +"Konnte $opt{train_type} $opt{train_no} nicht übertragen: $err_msg", is_error => 1 ); return; @@ -392,7 +392,7 @@ sub checkin { $self->{model}->log( uid => $opt{uid}, message => - "Checkin-Fehler bei $opt{train_type} $opt{train_no}: $err", +"Konnte $opt{train_type} $opt{train_no} nicht übertragen: $err", is_error => 1 ); } |