diff options
author | Ewan Mellor <ewan@xensource.com> | 2006-09-05 17:06:01 +0100 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2006-09-05 17:06:01 +0100 |
commit | 8037b37752eb7d17b02650e0f6b3115a0e04de1a (patch) | |
tree | d8d8f30d9442be55cea4e7118d3fda3025b586f2 /tools/console | |
parent | 9ad71b6de8597b0cb5ced3965a6ce15cd7fd4525 (diff) | |
download | xen-8037b37752eb7d17b02650e0f6b3115a0e04de1a.tar.gz xen-8037b37752eb7d17b02650e0f6b3115a0e04de1a.tar.bz2 xen-8037b37752eb7d17b02650e0f6b3115a0e04de1a.zip |
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@jp.fujitsu.com>
Diffstat (limited to 'tools/console')
-rw-r--r-- | tools/console/client/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/console/client/main.c b/tools/console/client/main.c index a43ee26463..829d5b2964 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -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 |