dom0/qvm-block: fix and clarify error message

This commit is contained in:
Marek Marczykowski 2012-12-05 16:52:10 +01:00
parent 5347637051
commit 96503fde2f

View File

@ -83,7 +83,7 @@ def main():
parser.error ("Invalid VM name: %s" % args[0])
# FIXME: here we assume that device is always in form "domain:dev", which can be changed in the future
if args[1].find(":") < 0:
parser.error ("Invalid device syntax" % args[1])
parser.error ("Invalid device syntax (missing VM name): %s" % args[1])
if options.do_file_attach:
dev = {}
(dev['vm'], dev['device']) = args[1].split(":")