From 117c4d98c2f3d763358e922c05f3d9dc1ded6ad5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Jan 2014 19:35:08 +0100 Subject: db-iris: exit if no matchin station was found --- bin/db-iris | 1 + 1 file changed, 1 insertion(+) 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]; -- cgit v1.2.3