On Tue, 17 Sep 2019 12:20:37 +0200 Greg Kurz <[email protected]> wrote: > error_setg() and error_propagate(), as well as their variants, cause > QEMU to terminate when called with &error_fatal or &error_abort. This > prevents to add hints since error_append_hint() isn't even called in > this case. > > It means that error_append_hint() should only be used with a local > error object, and then propagate this local error to the caller. > > Document this in <qapi/error.h> . > > Signed-off-by: Greg Kurz <[email protected]> > --- > include/qapi/error.h | 11 ++++++++++-
It's a bit awkward requiring a local object, but better safe than sorry. Reviewed-by: Cornelia Huck <[email protected]>
