From 5fd19063123d1df54394e5e594138075e8370478 Mon Sep 17 00:00:00 2001 From: ccardenas Date: Mon, 26 Feb 2018 06:36:53 +0000 Subject: [PATCH] vmctl: clarify console error message 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/vmctl/vmctl.c b/usr.sbin/vmctl/vmctl.c index fbe0ff66a7e..a935c8d2328 100644 --- a/usr.sbin/vmctl/vmctl.c +++ b/usr.sbin/vmctl/vmctl.c @@ -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 @@ -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"); } /* -- 2.20.1