Re: [RFC v2 1/9] error: auto propagated local_err

2019-09-23 Thread Eric Blake
On 9/23/19 11:12 AM, Vladimir Sementsov-Ogievskiy wrote: > Here is introduced ERRP_FUNCTION_BEGIN macro, to be used at start of > any function with errp parameter. > > It has three goals: > > 1. Fix issue with error_fatal & error_append_hint: user can't see these > hints, because exit() happens i

[RFC v2 1/9] error: auto propagated local_err

2019-09-23 Thread Vladimir Sementsov-Ogievskiy
Here is introduced ERRP_FUNCTION_BEGIN macro, to be used at start of any function with errp parameter. It has three goals: 1. Fix issue with error_fatal & error_append_hint: user can't see these hints, because exit() happens in error_setg earlier than hint is appended. [Reported by Greg Kurz] 2.