Anthony Liguori <anth...@codemonkey.ws> writes:

> Um, why not just do:
>
> #define GENERIC_ERROR "{'class': 'GenericError', 'data': { 'domain': %s, 
> 'msg': %s}"
>
> And then just use:
>
> error_set(errp, GENERIC_ERROR, SOME_DOMAIN, "This operation failed!");

Please explain the intended use of domain, and why it is necessary,
i.e. why class alone won't do.

[...]

Reply via email to