]> git.0d.be Git - empathy.git/commitdiff
When empathy_account_settings_apply_finish returns false the error is always set
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 23 Aug 2009 21:52:40 +0000 (22:52 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 23 Aug 2009 22:18:49 +0000 (23:18 +0100)
src/empathy-import-mc4-accounts.c

index c4ceb2f4b110720210de99d073ec281209e2fb3d..a7a08ea84677d924c961d6974a9bbcb404a36adb 100644 (file)
@@ -222,8 +222,7 @@ _create_account_cb (GObject *source,
   if (!empathy_account_settings_apply_finish (
       EMPATHY_ACCOUNT_SETTINGS (source), result, &error))
     {
   if (!empathy_account_settings_apply_finish (
       EMPATHY_ACCOUNT_SETTINGS (source), result, &error))
     {
-      DEBUG ("Failed to create account: %s",
-          error ? error->message : "No error given");
+      DEBUG ("Failed to create account: %s", error->message);
       g_error_free (error);
       goto out;
     }
       g_error_free (error);
       goto out;
     }