Re: [PATCH] cmdQemuMonitorCommandQMPWrap: Reset ignored errors from JSON parsing

2022-07-25 Thread Peter Krempa
On Wed, Mar 02, 2022 at 09:39:24 +0100, Martin Kletzander wrote: > On Tue, Mar 01, 2022 at 02:33:28PM +0100, Peter Krempa wrote: > > 'cmdQemuMonitorCommandQMPWrap' is checking whether the user provided > > string is not valid JSON to avoid wrapping it. In cases where it's not > > JSON we ignore

Re: [PATCH] cmdQemuMonitorCommandQMPWrap: Reset ignored errors from JSON parsing

2022-03-02 Thread Martin Kletzander
On Tue, Mar 01, 2022 at 02:33:28PM +0100, Peter Krempa wrote: 'cmdQemuMonitorCommandQMPWrap' is checking whether the user provided string is not valid JSON to avoid wrapping it. In cases where it's not JSON we ignore the error and add the wrapper. If the caller then reports a different

[PATCH] cmdQemuMonitorCommandQMPWrap: Reset ignored errors from JSON parsing

2022-03-01 Thread Peter Krempa
'cmdQemuMonitorCommandQMPWrap' is checking whether the user provided string is not valid JSON to avoid wrapping it. In cases where it's not JSON we ignore the error and add the wrapper. If the caller then reports a different non-libvirt error the error from the JSON parsing would be printed as