]> git.sesse.net Git - nms/blobdiff - clients/zyxelng.pl
Error handling.
[nms] / clients / zyxelng.pl
index a5ec109939eb74d527d683c21373984d1230c3dc..05bf471421368048734ff9a1aabfe9ff5acc27a2 100644 (file)
@@ -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 = <<EOF
 sys hostname es-3024