Revert "throw_error(): Print error to stderr when being called internally"
authorDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)
This reverts commit af80cd56e3b68cbc0de1fa1d03f9b2b2463aa514.

src/device.c

index 14d323a..261e45e 100644 (file)
@@ -5281,16 +5281,13 @@ throw_error (DBusGMethodInvocation *context,
   va_list args;
   char *message;
 
+  if (context == NULL)
+    return TRUE;
+
   va_start (args, format);
   message = g_strdup_vprintf (format, args);
   va_end (args);
 
-  if (context == NULL)
-    {
-      g_warning ("%s", message);
-      return TRUE;
-    }
-
   error = g_error_new (ERROR, error_code, "%s", message);
   dbus_g_method_return_error (context, error);
   g_error_free (error);