]> git.uio.no Git - check_linux_bonding.git/commitdiff
finpussing
authortrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Tue, 6 Oct 2009 14:27:40 +0000 (14:27 +0000)
committertrondham <trondham@e53b7cee-c147-0410-b3a0-ae4c1fa63963>
Tue, 6 Oct 2009 14:27:40 +0000 (14:27 +0000)
git-svn-id: svn+ssh://vcs-usit.uio.no/svnroot/usit-unix-intern/trunk/usit-nagios-plugins/trondham/check_linux_bonding@15281 e53b7cee-c147-0410-b3a0-ae4c1fa63963

check_linux_bonding

index 5af63981db1b504fe0a4725b1c0d9a76059006c3..138a849d705486e7bba9cda9931606bc096bf11c 100755 (executable)
@@ -153,9 +153,9 @@ my %text2exit
 
 # Check syntax of '--no-bonding' option
 if (!exists $text2exit{$opt{no_bonding}}) {
-    print "ERROR: Wrong usage of '--no-bonding' option: ";
-    print "'$opt{no_bonding}' is not a recognized keyword\n";
-    exit $E_UNKNOWN;
+    unknown_error("Wrong usage of '--no-bonding' option: '"
+                 . $opt{no_bonding}
+                 . "' is not a recognized keyword");
 }
 
 #---------------------------------------------------------------------