mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
[XM] Throw proper exception for xm console for unstarted domains.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
e4caeac504
commit
3f3404d127
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||