summary refs log tree commit diff stats
path: root/backends
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2022-10-12 17:37:58 +0200
committerMarkus Armbruster <armbru@redhat.com>2022-10-27 07:54:45 +0200
commit3f7febc93785bf0e622072b01f846d2acbcd9c0b (patch)
tree99fecb8db9b01b99bb7ab8a9c9704ae1f720be63 /backends
parent344744e148e6e865f5a57e745b02a87e5ea534ad (diff)
downloadfocaccia-qemu-3f7febc93785bf0e622072b01f846d2acbcd9c0b.tar.gz
focaccia-qemu-3f7febc93785bf0e622072b01f846d2acbcd9c0b.zip
qom: Improve error messages when property has no getter or setter
When you try to set a property that has no setter, the error message
blames "insufficient permission":

    $ qemu-system-x86_64 -S -display none -nodefaults -monitor stdio
    QEMU 7.1.50 monitor - type 'help' for more information
    (qemu) qom-set /machine type q35
    Error: Insufficient permission to perform this operation

This implies it could work with "sufficient permission".  It can't.
Change the error message to:

    Error: Property 'pc-i440fx-7.2-machine.type' is not writable

Do the same for getting a property that has no getter.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221012153801.2604340-2-armbru@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions