* warn when some weird folder rename error occurs that pvanhoof encountered
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Thu, 1 Nov 2007 15:59:32 +0000 (15:59 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Thu, 1 Nov 2007 15:59:32 +0000 (15:59 +0000)
pmo-trunk-r3612

src/modest-ui-actions.c

index dfe22a5..54fe04d 100644 (file)
@@ -2613,7 +2613,9 @@ modest_ui_actions_rename_folder_error_handler (ModestMailOperation *mail_op,
                message = _CS("ckdg_ib_folder_already_exists");
                break;
        default:
                message = _CS("ckdg_ib_folder_already_exists");
                break;
        default:
-               g_return_if_reached ();
+               g_warning ("%s: BUG: unexpected error:[%d]: %s", __FUNCTION__,
+                          error->code, error->message);
+               return;
        }
 
        modest_platform_information_banner (GTK_WIDGET (window), NULL, message);
        }
 
        modest_platform_information_banner (GTK_WIDGET (window), NULL, message);