diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 +0000 |
commit | 0c1c9f51e2c33db04918d2aa322fd1f9a688979b (patch) | |
tree | c7956483bce0deb4b73ca3a6b9d0b7f2e97620db /plugins/check_mysql.c | |
parent | 589d4664919638bedd6e2e1710c323887d19584a (diff) | |
download | monitoring-plugins-0c1c9f51e2c33db04918d2aa322fd1f9a688979b.tar.gz |
Making messages more consistent
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@930 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index dba43c5f..deac37fc 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -183,7 +183,7 @@ process_arguments (int argc, char **argv) | |||
183 | db_host = optarg; | 183 | db_host = optarg; |
184 | } | 184 | } |
185 | else { | 185 | else { |
186 | usage (_("Invalid host name\n")); | 186 | usage2 (_("Invalid host name"), optarg); |
187 | } | 187 | } |
188 | break; | 188 | break; |
189 | case 'd': /* hostname */ | 189 | case 'd': /* hostname */ |
@@ -221,7 +221,7 @@ process_arguments (int argc, char **argv) | |||
221 | db_host = argv[c++]; | 221 | db_host = argv[c++]; |
222 | } | 222 | } |
223 | else { | 223 | else { |
224 | usage ("Invalid host name"); | 224 | usage2 (_("Invalid host name"), optarg); |
225 | } | 225 | } |
226 | else if (strlen(db_user) == 0) | 226 | else if (strlen(db_user) == 0) |
227 | db_user = argv[c++]; | 227 | db_user = argv[c++]; |