summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-07 19:35:08 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-07 19:35:08 +0100
commit117c4d98c2f3d763358e922c05f3d9dc1ded6ad5 (patch)
tree140e666f47ab3a54302c27544571f17aef417d9e /bin/db-iris
parentfc8447df91f8b57fe160256ebc8952f62ee17783 (diff)
db-iris: exit if no matchin station was found
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-xbin/db-iris1
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];