提交 5e75750f 编写于 作者: K Kevin Heifner

Better error handling

上级 80e60704
......@@ -1256,4 +1256,7 @@ class Cluster(object):
self.biosNode.reportStatus()
if hasattr(self, "nodes"):
for node in self.nodes:
node.reportStatus()
try:
node.reportStatus()
except:
Utils.Print("No reportStatus")
......@@ -87,7 +87,7 @@ class Utils:
return
Utils.Print("ERROR:" if not raw else "", msg)
traceback.print_stack(limit=-1)
exit(errorCode)
sys.exit(errorCode)
@staticmethod
def cmdError(name, cmdCode=0):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册