[XM] Throw proper exception for xm console for unstarted domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-12-21 12:05:41 +00:00
1 parent e4caeac504
commit 3f3404d127
1 file changed
+1 -1
+1 -1
View File
@@ -1244,7 +1244,7 @@ def xm_console(args):
if quiet:
sys.exit(1)
else:
raise Exception("Domain is not started")
raise xmlrpclib.Fault(0, "Domain '%s' is not started" % dom)
console.execConsole(domid)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.