vmctl: clarify console error message
authorccardenas <ccardenas@openbsd.org>
Mon, 26 Feb 2018 06:36:53 +0000 (06:36 +0000)
committerccardenas <ccardenas@openbsd.org>
Mon, 26 Feb 2018 06:36:53 +0000 (06:36 +0000)
Clear up ambiguous error message when attaching to a console fails as
the vm id is not guaranteed to be populated.

ok mlarkin@

usr.sbin/vmctl/vmctl.c

index fbe0ff6..a935c8d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vmctl.c,v 1.45 2018/01/03 05:39:56 ccardenas Exp $    */
+/*     $OpenBSD: vmctl.c,v 1.46 2018/02/26 06:36:53 ccardenas Exp $    */
 
 /*
  * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
@@ -702,7 +702,7 @@ vm_console(struct vmop_info_result *list, size_t ct)
                }
        }
 
-       errx(1, "console %d not found", info_id);
+       errx(1, "console not found");
 }
 
 /*