Re: [PATCH 05/14] qapi: Improve error message for unexpected array types

2023-03-16 Thread Philippe Mathieu-Daudé
On 16/3/23 08:13, Markus Armbruster wrote: We reject array types in certain places with "cannot be an array". Deleting this check improves the error message to "should be a type name" or "should be an object or type name", depending on context, so do that. Signed-off-by: Markus Armbruster ---

[PATCH 05/14] qapi: Improve error message for unexpected array types

2023-03-16 Thread Markus Armbruster
We reject array types in certain places with "cannot be an array". Deleting this check improves the error message to "should be a type name" or "should be an object or type name", depending on context, so do that. Signed-off-by: Markus Armbruster --- scripts/qapi/expr.py | 6