Add a hint when machine autodetection fails
Also fix a pylint warning about indentation
@@ -46,7 +46,7 @@ class QemuCommand(object):
if len(machines) == 1:
self.machine = machines[0]
else:
- raise ValueError("Could not autodetect machine type from %s" % args.dir)
+ raise ValueError("Could not autodetect machine type. More than one entry in %s. Maybe --machine qemux86-64?" % args.dir)
if args.efi:
self.bios = 'OVMF.fd'
else:
@@ -124,4 +124,3 @@ class QemuCommand(object):
self.overlay]
return cmdline
-
