Eric Blake writes:
> On 12/17/2015 09:49 AM, Markus Armbruster wrote:
>> Instead of simply propagating an error verbatim, we sometimes want to
>> add to its message, like this:
>>
>> frobnicate(arg, &err);
>> error_setg(errp, "Can't frobnicate %s: %s",
>> arg, error_get
On 12/17/2015 09:49 AM, Markus Armbruster wrote:
> Instead of simply propagating an error verbatim, we sometimes want to
> add to its message, like this:
>
> frobnicate(arg, &err);
> error_setg(errp, "Can't frobnicate %s: %s",
>arg, error_get_pretty(err));
Did you inte
Instead of simply propagating an error verbatim, we sometimes want to
add to its message, like this:
frobnicate(arg, &err);
error_setg(errp, "Can't frobnicate %s: %s",
arg, error_get_pretty(err));
error_free(err);
This is suboptimal, because it loses err's hint (i