mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
qapi: Improve input_type_enum()'s error message
The error message claims the parameter is invalid: $ qemu-system-x86_64 -object qom-type=nonexistent qemu-system-x86_64: -object qom-type=nonexistent: Invalid parameter 'nonexistent' What's wrong is actually the *value* 'nonexistent'. Improve the message to qemu-system-x86_64: -object qom-type=nonexistent: Parameter 'qom-type' does not accept value 'nonexistent' Fixes: https://gitlab.com/qemu-project/qemu/-/issues/608 Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211020180231.434071-1-armbru@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
931ce30859
commit
ea29331ba6
8 changed files with 13 additions and 12 deletions
|
@ -148,7 +148,7 @@ rmdir "$EXT_MP" 2>/dev/null
|
|||
rm -f "$EXT_MP"
|
||||
output=$(fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error)
|
||||
|
||||
if echo "$output" | grep -q "Invalid parameter 'fuse'"; then
|
||||
if echo "$output" | grep -q "Parameter 'type' does not accept value 'fuse'"; then
|
||||
_notrun 'No FUSE support'
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue