mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 09:40:11 +01:00
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:
parent
5110fa7811
commit
ec1ad2df27
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue