GNOME Bugzilla – Bug 715028
GVariant: add way to print context of parse errors
Last modified: 2013-12-22 16:42:40 UTC
See patch.
Created attachment 261246 [details] [review] GVariant: add way to print context of parse errors This was a feature intended from the very beginning that somehow never got written. It's a way to replace these sort of error messages out of the GVariant parser: 1-2,10-15:unable to find a common type with something in the style of the Vala compiler: unable to find a common type: [1, 2, 3, 'str'] ^ ^^^^^
Created attachment 261247 [details] [review] gsettings tool: print GVariant errors in context Use g_variant_parse_error_print_context() to format the error message from the GVariant parser.
Created attachment 261249 [details] [review] gapplication(1): print GVariant errors in context Use g_variant_parse_error_print_context() to format the error message from the GVariant parser.
Created attachment 261255 [details] [review] gdbus tool: print GVariant errors in context Use g_variant_parse_error_print_context() to format the error message from the GVariant parser. There is a slightly dubious interaction with the "parse me harder" functionality here. We're probably going to have to deal with that separately.
Review of attachment 261247 [details] [review]: looks good to me
Review of attachment 261246 [details] [review]: ok
Review of attachment 261249 [details] [review]: ok
Review of attachment 261255 [details] [review]: ok
Attachment 261246 [details] pushed as 56fb675 - GVariant: add way to print context of parse errors Attachment 261247 [details] pushed as 420f90d - gsettings tool: print GVariant errors in context Attachment 261249 [details] pushed as 94a89f6 - gapplication(1): print GVariant errors in context Attachment 261255 [details] pushed as ee5dab6 - gdbus tool: print GVariant errors in context