diff options
| author | Michael Biebl <biebl@debian.org> | 2011-03-18 20:17:47 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2011-03-18 20:17:47 +0100 |
| commit | e22c6e05e9ebc6cce941762020c5710b8014677b (patch) | |
| tree | 7e9fd7f8ae24a94b03f683e0cef9a346968e1e8b /cli/src/nmcli.c | |
| parent | a6b89d35fabd9f5934b84d7cde22e9268f92c3d3 (diff) | |
Imported Upstream version 0.8.3.998 upstream/0.8.3.998
Diffstat (limited to 'cli/src/nmcli.c')
| -rw-r--r-- | cli/src/nmcli.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cli/src/nmcli.c b/cli/src/nmcli.c index d416952c..4a548024 100644 --- a/cli/src/nmcli.c +++ b/cli/src/nmcli.c @@ -16,7 +16,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * (C) Copyright 2010 Red Hat, Inc. + * (C) Copyright 2010 - 2011 Red Hat, Inc. */ /* Generated configuration file */ @@ -30,8 +30,6 @@ #include <glib.h> #include <glib/gi18n.h> -#include <dbus/dbus.h> -#include <dbus/dbus-glib.h> #include <nm-client.h> #include <nm-setting-connection.h> #include <nm-remote-settings.h> @@ -256,8 +254,8 @@ nmc_get_client (NmCli *nmc) if (!nmc->client) { nmc->client = nm_client_new (); if (!nmc->client) { - g_string_printf (nmc->return_text, _("Error: Could not connect to NetworkManager.")); - nmc->return_value = NMC_RESULT_ERROR_UNKNOWN; + g_critical (_("Error: Could not create NMClient object.")); + exit (NMC_RESULT_ERROR_UNKNOWN); } } |