From 9560bd6e53ca30b16c0ee8684ce21ec446250725 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Aug 2021 18:57:23 +0200 Subject: correctly show wagon order error message was broken by ca372be9811a183d11a00abd539442a9e2e53cae --- lib/DBInfoscreen/Controller/Wagenreihung.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/DBInfoscreen') diff --git a/lib/DBInfoscreen/Controller/Wagenreihung.pm b/lib/DBInfoscreen/Controller/Wagenreihung.pm index d99a71c..b7c6d84 100644 --- a/lib/DBInfoscreen/Controller/Wagenreihung.pm +++ b/lib/DBInfoscreen/Controller/Wagenreihung.pm @@ -277,7 +277,8 @@ sub wagenreihung { sub { my ($err) = @_; - $self->handle_wagenreihung_error( $train, scalar $err ); + $self->handle_wagenreihung_error( $train, + $err->{error}->{msg} // "Unbekannter Fehler" ); return; } )->wait; -- cgit v1.2.3