From: <ba...@us...> - 2008-10-21 16:56:16
|
Revision: 1116 http://omc.svn.sourceforge.net/omc/?rev=1116&view=rev Author: bartw Date: 2008-10-21 16:56:09 +0000 (Tue, 21 Oct 2008) Log Message: ----------- preserve original cmpi error in description Modified Paths: -------------- cmpi-bindings/trunk/swig/python/cmpi_pywbem_bindings.py Modified: cmpi-bindings/trunk/swig/python/cmpi_pywbem_bindings.py =================================================================== --- cmpi-bindings/trunk/swig/python/cmpi_pywbem_bindings.py 2008-10-21 16:36:45 UTC (rev 1115) +++ cmpi-bindings/trunk/swig/python/cmpi_pywbem_bindings.py 2008-10-21 16:56:09 UTC (rev 1116) @@ -54,6 +54,10 @@ desc = ex.get_description() if code < 0 or code > 17: + if desc is None: + desc = str(code) + else: + desc = str(code) + ':' + desc code = pywbem.CIM_ERR_FAILED return pywbem.CIMError(code, desc) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |