aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-contacts.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/exchange-operations/exchange-contacts.c')
-rw-r--r--plugins/exchange-operations/exchange-contacts.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/exchange-operations/exchange-contacts.c b/plugins/exchange-operations/exchange-contacts.c
index c775a1f480..0dc53bf30f 100644
--- a/plugins/exchange-operations/exchange-contacts.c
+++ b/plugins/exchange-operations/exchange-contacts.c
@@ -300,30 +300,26 @@ e_exchange_contacts_commit (EPlugin *epl, EConfigTarget *target)
}
switch (result) {
- /* TODO: Modify all these error messages using e_error */
- case EXCHANGE_ACCOUNT_FOLDER_OK:
- g_print ("Folder created\n");
- break;
case EXCHANGE_ACCOUNT_FOLDER_ALREADY_EXISTS:
- g_print ("Already exists\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-exists-error", NULL);
break;
case EXCHANGE_ACCOUNT_FOLDER_DOES_NOT_EXIST:
- g_print ("Doesn't exists\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-doesnt-exist-error", NULL);
break;
case EXCHANGE_ACCOUNT_FOLDER_UNKNOWN_TYPE:
- g_print ("Unknown type\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-unknown-type", NULL);
break;
case EXCHANGE_ACCOUNT_FOLDER_PERMISSION_DENIED:
- g_print ("Permission denied\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-perm-error", NULL);
break;
case EXCHANGE_ACCOUNT_FOLDER_OFFLINE:
- g_print ("Folder offline\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-offline-error", NULL);
break;
case EXCHANGE_ACCOUNT_FOLDER_UNSUPPORTED_OPERATION:
- g_print ("Unsupported operation\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-unsupported-error", NULL);
break;
case EXCHANGE_ACCOUNT_FOLDER_GENERIC_ERROR:
- g_print ("Generic error\n");
+ e_error_run (NULL, ERROR_DOMAIN ":folder-generic-error", NULL);
break;
}
g_free (ruri);