status and error handling */
if (modest_mail_operation_get_error (mail_op) != NULL)
modest_mail_operation_execute_error_handler (mail_op);
- else
- g_warning ("%s: possible error in a mail operation "\
- "implementation. The status is not succesful"\
- "but the mail operation does not have any "\
- "error set\n", __FUNCTION__);
+ else {
+ if (status == MODEST_MAIL_OPERATION_STATUS_CANCELED)
+ g_warning ("%s: operation canceled \n", __FUNCTION__);
+ else
+ g_warning ("%s: possible error in a mail operation " \
+ "implementation. The status is not succesful" \
+ "but the mail operation does not have any " \
+ "error set\n", __FUNCTION__);
+ }
}
/* Free object */