# HG changeset patch # User Ewan Mellor # Date 1157472361 -3600 # Node ID ae46cac4865930a0a1b6ba57d33624c025715717 # Parent e76c6d838a449a651801d973944c27c30aa2d5f7 This patch improves error message of xm console command. # xm console Domain-0 Can't specify Domain-0 Signed-off-by: Masaki Kanno diff -r e76c6d838a44 -r ae46cac48659 tools/console/client/main.c --- a/tools/console/client/main.c Tue Sep 05 16:48:21 2006 +0100 +++ b/tools/console/client/main.c Tue Sep 05 17:06:01 2006 +0100 @@ -220,7 +220,8 @@ int main(int argc, char **argv) user friendly, we'll bail out here since no data will ever show up on domain-0. */ if (domid == 0) { - err(errno, "Could not read tty from store"); + fprintf(stderr, "Can't specify Domain-0\n"); + exit(EINVAL); } /* Wait a little bit for tty to appear. There is a race