Index | Thread | Search

From:
Chaz Kettleson <chaz@pyr3x.com>
Subject:
vmctl(8): improve error message when there is no console
To:
tech@openbsd.org
Date:
Sun, 15 Nov 2026 09:45:55 -0500

Download raw body.

Thread
  • Chaz Kettleson:

    vmctl(8): improve error message when there is no console

Hello,

Given the following:

$ vmctl console vm10
vmctl: console not found

I often find myself thinking that the command argument 'console' is not
found, not that the console for vm10 is not found. Perhaps I'm alone in
that, but would something like "console not available" be more suitable?

-- 
Chaz

diff --git i/usr.sbin/vmctl/vmctl.c w/usr.sbin/vmctl/vmctl.c
index 21963f76e15..c83b5743f03 100644
--- i/usr.sbin/vmctl/vmctl.c
+++ w/usr.sbin/vmctl/vmctl.c
@@ -802,7 +802,7 @@ vm_console(struct vmop_info_result *list, size_t ct)
 		}
 	}
 
-	errx(1, "console not found");
+	errx(1, "console not available");
 }
 
 /*