Re: [PATCH v4 06/14] simpletrace: improved error handling on struct unpack

2023-09-20 Thread Stefan Hajnoczi
On Wed, Aug 23, 2023 at 10:54:21AM +0200, Mads Ynddal wrote: > From: Mads Ynddal > > A failed call to `read_header` wouldn't be handled the same for the two > different code paths (one path would try to use `None` as a list). > Changed to raise exception to be handled centrally. This also allows

Re: [PATCH v4 06/14] simpletrace: improved error handling on struct unpack

2023-09-05 Thread Philippe Mathieu-Daudé
On 23/8/23 10:54, Mads Ynddal wrote: From: Mads Ynddal A failed call to `read_header` wouldn't be handled the same for the two different code paths (one path would try to use `None` as a list). Changed to raise exception to be handled centrally. This also allows for easier unpacking, as errors

[PATCH v4 06/14] simpletrace: improved error handling on struct unpack

2023-08-23 Thread Mads Ynddal
From: Mads Ynddal A failed call to `read_header` wouldn't be handled the same for the two different code paths (one path would try to use `None` as a list). Changed to raise exception to be handled centrally. This also allows for easier unpacking, as errors has been filtered out. Signed-off-by: