diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-06-09 14:01:27 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-06-09 14:01:27 +0100 |
commit | eb33b69cb3b36eb18b5ef4fd803b48d8dfd7cbcd (patch) | |
tree | c5f3ff1b1566b748b5e84a1e004aa1fc0b8fbfe0 /tests | |
parent | ad6ea7755828ded65e257c4bfb6b3f2a806e43ca (diff) |
gvariant: Add suggestions for GVariant format strings to error messages
When an unexpected extra parameter is passed to a GVariant variadic
function, it is useful to tell the programmer what format string they
can use for it. This is a first draft, and only covers basic types.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gvariant-lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gvariant-lookup.c b/tests/gvariant-lookup.c index 4f07e81..bcbac05 100644 --- a/tests/gvariant-lookup.c +++ b/tests/gvariant-lookup.c @@ -54,13 +54,13 @@ } /* - * Unexpected GVariant variadic argument of type 'char *'. Either it should be removed, or a GVariant format string should be added to the format argument to use it. There is no known GVariant representation of the argument’s type, so the argument must be serialized to a GVariant-representable type first. + * Unexpected GVariant variadic argument of type 'char *'. Either it should be removed, or a ‘s’ (or other valid) GVariant format string should be added to the format argument to use it. * "server", "&s", &server_param); * ^ - * Unexpected GVariant variadic argument of type 'char *'. Either it should be removed, or a GVariant format string should be added to the format argument to use it. There is no known GVariant representation of the argument’s type, so the argument must be serialized to a GVariant-representable type first. + * Unexpected GVariant variadic argument of type 'char *'. Either it should be removed, or a ‘s’ (or other valid) GVariant format string should be added to the format argument to use it. * "server", "&s", &server_param); * ^ - * Unexpected GVariant variadic argument of type 'const gchar **' (aka 'const char **'). Either it should be removed, or a GVariant format string should be added to the format argument to use it. There is no known GVariant representation of the argument’s type, so the argument must be serialized to a GVariant-representable type first. + * Unexpected GVariant variadic argument of type 'const gchar **' (aka 'const char **'). Either it should be removed, or a ‘^as’ (or other valid) GVariant format string should be added to the format argument to use it. * "server", "&s", &server_param); * ^ */ |