Re: [Qemu-devel] [PATCH 22/56] json: Report first rather than last parse error

2018-08-10 Thread Eric Blake
On 08/08/2018 07:03 AM, Markus Armbruster wrote: Quiz time! When a parser reports multiple errors, but the user gets to see just one, which one is (on average) the least useful one? :) Reproducer: feeding {"abc\xC2ijk": 1}\n to QMP produces {"error": {"class": "GenericError", "

[Qemu-devel] [PATCH 22/56] json: Report first rather than last parse error

2018-08-08 Thread Markus Armbruster
Quiz time! When a parser reports multiple errors, but the user gets to see just one, which one is (on average) the least useful one? Yes, you're right, it's the last one! You're clearly familiar with compilers. Which one does QEMU report? Right again, the last one! You're clearly familiar wit