aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2006-09-05 17:06:01 +0100
committerEwan Mellor <ewan@xensource.com>2006-09-05 17:06:01 +0100
commit8037b37752eb7d17b02650e0f6b3115a0e04de1a (patch)
treed8d8f30d9442be55cea4e7118d3fda3025b586f2 /tools/console
parent9ad71b6de8597b0cb5ced3965a6ce15cd7fd4525 (diff)
downloadxen-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.c3
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