[PATCH 3/3] vl.c: select_machine(): add selected machine type to error message

Vladimir Sementsov-Ogievskiy posted 3 patches 5 months ago
Maintainers: Paolo Bonzini <pbonzini@redhat.com>
[PATCH 3/3] vl.c: select_machine(): add selected machine type to error message
Posted by Vladimir Sementsov-Ogievskiy 5 months ago
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
 system/vl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/vl.c b/system/vl.c
index 947b433905..a6a4b470a7 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -1674,7 +1674,7 @@ static MachineClass *select_machine(QDict *qdict, Error **errp)
         machine_class = find_machine(machine_type, machines);
         qdict_del(qdict, "type");
         if (!machine_class) {
-            error_setg(errp, "unsupported machine type");
+            error_setg(errp, "unsupported machine type: \"%s\"", optarg);
         }
     } else {
         machine_class = find_default_machine(machines);
-- 
2.34.1