[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] This patch improves error message of xm console command.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# 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 <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/console/client/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.