nm-online: print warnings not critical errors (rh #593677)

Otherwise we'll segfault if critical errors are set to abort.
This commit is contained in:
Dan Williams 2010-05-20 00:22:56 -07:00
parent 5110fa7811
commit ec1ad2df27

View file

@ -153,7 +153,7 @@ int main (int argc, char *argv[])
g_option_context_free (opt_ctx);
if (!success) {
g_error ("Invalid option. Please use --help to see a list of valid options.");
g_warning ("Invalid option. Please use --help to see a list of valid options.");
return 2;
}
@ -162,7 +162,7 @@ int main (int argc, char *argv[])
else
timeout.value = 30;
if (timeout.value < 0 || timeout.value > 3600) {
g_error ("Invalid option. Please use --help to see a list of valid options.");
g_warning ("Invalid option. Please use --help to see a list of valid options.");
return 2;
}