diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-07 19:35:08 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-07 19:35:08 +0100 |
commit | 117c4d98c2f3d763358e922c05f3d9dc1ded6ad5 (patch) | |
tree | 140e666f47ab3a54302c27544571f17aef417d9e /bin | |
parent | fc8447df91f8b57fe160256ebc8952f62ee17783 (diff) |
db-iris: exit if no matchin station was found
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/db-iris | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/db-iris b/bin/db-iris index eefb2c6..5db30e1 100755 --- a/bin/db-iris +++ b/bin/db-iris @@ -75,6 +75,7 @@ sub get_station { if ( @stations == 0 ) { say STDERR "No station matches '$input_name'"; + exit(1); } elsif ( @stations == 1 ) { return $stations[0][0]; |