summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-08-25 12:09:54 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-08-25 12:09:54 +0100
commitd771a4cff23130c34471fce3eb7236dc851e55ae (patch)
tree02fffea360fcb6dfaf8dc70f7960f3634a1c4af0 /src
parent4aad882bcec0a476adbbeab47dee4833c3e053a3 (diff)
Test invalid or ill-typed parameters for new accounts
Diffstat (limited to 'src')
-rw-r--r--src/mcd-account.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mcd-account.c b/src/mcd-account.c
index f36045c2..f84fb67d 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -2396,9 +2396,9 @@ check_one_parameter_update (McdAccount *account,
if (G_VALUE_TYPE (new_value) != type)
{
- /* FIXME: define proper error */
+ /* FIXME: use D-Bus type names, not GType names. */
g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
- "parameter %s must be of type %s, not %s",
+ "parameter '%s' must be of type %s, not %s",
param->name,
g_type_name (type), G_VALUE_TYPE_NAME (new_value));
return FALSE;