}
if (icalcomp == NULL) {
- g_propagate_error (
- error, e_cal_client_error_create (
- E_CAL_CLIENT_ERROR_INVALID_OBJECT, NULL));
+ g_set_error_literal (
+ error, E_CAL_CLIENT_ERROR,
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT,
+ e_cal_client_error_to_string (
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT));
return FALSE;
}
g_free (string);
if (icalcomp == NULL) {
- g_propagate_error (
- error, e_cal_client_error_create (
- E_CAL_CLIENT_ERROR_INVALID_OBJECT, NULL));
+ g_set_error_literal (
+ error, E_CAL_CLIENT_ERROR,
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT,
+ e_cal_client_error_to_string (
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT));
return FALSE;
}
g_free (string);
if (icalcomp == NULL) {
- g_propagate_error (
- error, e_cal_client_error_create (
- E_CAL_CLIENT_ERROR_INVALID_OBJECT, NULL));
+ g_set_error_literal (
+ error, E_CAL_CLIENT_ERROR,
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT,
+ e_cal_client_error_to_string (
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT));
return FALSE;
}
*out_modified_icalcomp = icalcomp;
} else {
g_propagate_error (
- error, e_cal_client_error_create (
- E_CAL_CLIENT_ERROR_INVALID_OBJECT, NULL));
+ error, E_CAL_CLIENT_ERROR,
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT,
+ e_cal_client_error_to_string (
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT));
g_strfreev (users);
return FALSE;
}
g_free (string);
if (icalcomp == NULL) {
- g_propagate_error (
- error, e_cal_client_error_create (
- E_CAL_CLIENT_ERROR_INVALID_OBJECT, NULL));
+ g_set_error_literal (
+ error, E_CAL_CLIENT_ERROR,
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT,
+ e_cal_client_error_to_string (
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT));
return FALSE;
}
zone = icaltimezone_new ();
if (!icaltimezone_set_component (zone, icalcomp)) {
- g_propagate_error (
- error, e_cal_client_error_create (
- E_CAL_CLIENT_ERROR_INVALID_OBJECT, NULL));
+ g_set_error_literal (
+ error, E_CAL_CLIENT_ERROR,
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT,
+ e_cal_client_error_to_string (
+ E_CAL_CLIENT_ERROR_INVALID_OBJECT));
icalcomponent_free (icalcomp);
icaltimezone_free (zone, 1);
return FALSE;