diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-26 19:00:49 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-26 19:00:49 +0100 |
commit | 6d44f63a1109800341f514ac2d75982e27be13b3 (patch) | |
tree | 110448ac1e98500ebf9f3fb8134f007bba9d190f /bin | |
parent | b2aefe0c6ec267409e17a1ae59316ffb3adb0dae (diff) |
dbris-m: indicate station lookup errors in station board mode
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dbris-m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index 960927a..9dbaf97 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -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; |