From 96503fde2fed9bc062d111a5f5d47dc9547d9419 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 5 Dec 2012 16:52:10 +0100 Subject: [PATCH] dom0/qvm-block: fix and clarify error message --- dom0/qvm-tools/qvm-block | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qvm-block b/dom0/qvm-tools/qvm-block index 24f83f73..875f1fec 100755 --- a/dom0/qvm-tools/qvm-block +++ b/dom0/qvm-tools/qvm-block @@ -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(":")