From bdaf7e9dd249ecd26de539c0fa978175a6ea45ec Mon Sep 17 00:00:00 2001 From: Eirik Nygaard Date: Tue, 3 Apr 2007 18:15:22 +0200 Subject: [PATCH] Error handling. --- clients/zyxelng.pl | 1 + 1 file changed, 1 insertion(+) 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 = <