summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}