From: ccardenas Date: Mon, 26 Feb 2018 06:36:53 +0000 (+0000) Subject: vmctl: clarify console error message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5fd19063123d1df54394e5e594138075e8370478;p=openbsd 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@ --- 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"); } /*