From c2f23c05cb4116a2127e4ef6a8d7ce6489aea241 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 14 May 2013 10:35:58 +0200 Subject: cim2uml now shows detailed message on GetInstance error. When cim2uml gets an error on GetInstance() call, it now shows better message than "error getting instance", so user knows which instance/class is wrong. --- tools/cim2uml.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/cim2uml.py') diff --git a/tools/cim2uml.py b/tools/cim2uml.py index 9f3c3fb..4bfee93 100755 --- a/tools/cim2uml.py +++ b/tools/cim2uml.py @@ -193,7 +193,12 @@ class CimLoader(object): self.queue[path] = level def getFullInstance(self, instance): - return self.cliconn.GetInstance(instance) + try: + inst = self.cliconn.GetInstance(instance) + except pywbem.CIMError: + print >>sys.stderr, 'Error getting instance %s' % (str(instance)) + raise + return inst def addReferences(self, instance, level): if self.levels <= level: -- cgit