Pretty-prints a message showing the context of a GLib.Variant parse
error within the string for which parsing was attempted.
The resulting string is suitable for output to the console or other
monospace media where newlines are treated in the usual way.
The message will typically look something like one of the following:
unterminatedstringconstant: (1, 2, 3, 'abc ^^^^
or
unabletofindacommontype: [1, 2, 3, 'str'] ^ ^^^^^
The format of the message may change in a future version.
error must have come from a failed attempt to g_variant_parse() and
source_str must be exactly the same string that caused the error.
If source_str was not nul-terminated when you passed it to
g_variant_parse() then you must add nul termination before using this
function.
Pretty-prints a message showing the context of a GLib.Variant parse error within the string for which parsing was attempted.
The resulting string is suitable for output to the console or other monospace media where newlines are treated in the usual way.
The message will typically look something like one of the following:
or
The format of the message may change in a future version.
errormust have come from a failed attempt tog_variant_parse()andsource_strmust be exactly the same string that caused the error. Ifsource_strwas not nul-terminated when you passed it tog_variant_parse()then you must add nul termination before using this function.