core: return valid error to dbus-glib (rh #581794)
authorDan Williams <dcbw@redhat.com>
Thu, 22 Apr 2010 19:39:48 +0000 (12:39 -0700)
committerDan Williams <dcbw@redhat.com>
Thu, 22 Apr 2010 19:39:48 +0000 (12:39 -0700)
libnm-glib/nm-exported-connection.c

index 8ca64e7..3a8e51c 100644 (file)
@@ -228,7 +228,9 @@ impl_exported_connection_get_secrets (NMExportedConnection *self,
        if (NM_EXPORTED_CONNECTION_GET_CLASS (self)->get_secrets)
                NM_EXPORTED_CONNECTION_GET_CLASS (self)->get_secrets (self, setting_name, hints, request_new, context);
        else {
-               error = g_error_new (0, 0, "%s: %s:%d get_secrets() unimplemented", __func__, __FILE__, __LINE__);
+               error = g_error_new (NM_SETTINGS_INTERFACE_ERROR,
+                                    NM_SETTINGS_INTERFACE_ERROR_INTERNAL_ERROR,
+                                    "%s: %s:%d get_secrets() unimplemented", __func__, __FILE__, __LINE__);
                dbus_g_method_return_error (context, error);
                g_error_free (error);
        }