Unverified Commit 6d44f63a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

dbris-m: indicate station lookup errors in station board mode

parent b2aefe0c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ elsif ( $opt{station} !~ m{ ^ \d+ $ }x ) {
		locationSearch => $opt{station},
		developer_mode => $developer_mode,
	);
	if ( my $err = $status->errstr ) {
		say STDERR "Request error while looking up '$opt{station}': ${err}";
		exit 2;
	}
	my $found;
	for my $result ( $status->results ) {
		say $result->name;