From: Eirik Nygaard Date: Tue, 3 Apr 2007 16:15:22 +0000 (+0200) Subject: Error handling. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bdaf7e9dd249ecd26de539c0fa978175a6ea45ec;p=nms Error handling. --- diff --git a/clients/zyxelng.pl b/clients/zyxelng.pl index a5ec109..05bf471 100644 --- a/clients/zyxelng.pl +++ b/clients/zyxelng.pl @@ -33,6 +33,7 @@ my $switchip; #$switchip = "192.168.1.1" unless $one; $switchip = $oldip; my $switch = switch_connect($switchip); + or die "Could not connect to $switchip"; my $cmds1 = <