Skip to content
  • Markus Armbruster's avatar
    qdev-monitor: Improve error message for -device nonexistant · 11c308b1
    Markus Armbruster authored
    Once upon a time, the error message was:
    
        qemu: -device nonexistant: Device "nonexistant" not found.  Try -device '?' for a list.
    
    But progress marches on, and conversion to QError (commit 0204276b)
    changed it into:
    
        Invalid parameter 'driver'
        Try with argument '?' for a list.
    
    Progress didn't stop there, of course.  After a couple of iterations,
    we arrived at the current message (commit 6acbe4c6
    
    ):
    
        qemu: -device nonexistant: Parameter 'driver' expects device type
    
    Mission accomplished: this is complete mush.
    
    We've since abandoned our quest for "rich" error objects, fortunately
    before it turned all error messages into mush.  Time to undo the
    damage to this one.  Make it:
    
        qemu: -device nonexistant: nonexistant is not a valid device model name
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
    11c308b1