diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-07 17:36:21 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-07 17:36:21 +0100 |
commit | 4c9eaa898b14442d23d3d485c2725af978b35da4 (patch) | |
tree | 4bb9130e6224eb9aade0ab56699b208cb183f6b8 /src/protocol.c | |
parent | d81cdd5171afb380bdf862b63ddd1858818f0523 (diff) | |
download | telepathy-haze-4c9eaa898b14442d23d3d485c2725af978b35da4.tar.gz |
Use TP_ERRORS instead of deprecated TP_ERROR
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol.c b/src/protocol.c index 13dc8ae..6fd279e 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -285,7 +285,7 @@ _param_filter_no_blanks (const TpCMParamSpec *paramspec, if (*str == '\0') { - g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, + g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT, "Account parameter '%s' must not be empty", paramspec->name); return FALSE; @@ -293,7 +293,7 @@ _param_filter_no_blanks (const TpCMParamSpec *paramspec, if (strstr (str, " ") != NULL) { - g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, + g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT, "Account parameter '%s' may not contain spaces", paramspec->name); return FALSE; @@ -318,7 +318,7 @@ _param_filter_string_list (const TpCMParamSpec *paramspec, != NULL) return TRUE; - g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, + g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT, "'%s' is not a valid value for parameter '%s'", str, paramspec->name); return FALSE; } |