summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2010-09-14 14:52:52 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2010-09-14 14:52:52 +0100
commit9ac2c09945c69c32ca4a6e15a30048c58add2782 (patch)
treef0ee15e0427f15655e73c2d014a0e25f6427f73a
parent631e2cafc2e45e89ee3cfc9f47dd0582c14c40bf (diff)
downloadtelepathy-mission-control-9ac2c09945c69c32ca4a6e15a30048c58add2782.tar.gz
Generate a GError in the "unsupported type" case of the dup_value method
-rw-r--r--src/plugin-account.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugin-account.c b/src/plugin-account.c
index 57380415..cfdc7cb2 100644
--- a/src/plugin-account.c
+++ b/src/plugin-account.c
@@ -543,8 +543,15 @@ _storage_dup_value (McdStorage *storage,
}
else
{
- g_warning ("%s: cannot get property %s, unknown type %s",
- G_STRFUNC, key, g_type_name (type));
+ gchar *message =
+ g_strdup_printf ("cannot get property %s, unknown type %s",
+ key, g_type_name (type));
+
+ g_warning ("%s: %s", G_STRFUNC, message);
+ g_set_error (error, MCD_ACCOUNT_ERROR,
+ MCD_ACCOUNT_ERROR_GET_PARAMETER,
+ "%s", message);
+ g_free (message);
}
}