From ec1ad2df27f56b75854c1465e557afa9fd82c868 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 20 May 2010 00:22:56 -0700 Subject: [PATCH] nm-online: print warnings not critical errors (rh #593677) Otherwise we'll segfault if critical errors are set to abort. --- test/nm-online.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/nm-online.c b/test/nm-online.c index 3827c74690..27bf1789fb 100644 --- a/test/nm-online.c +++ b/test/nm-online.c @@ -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; }