]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Compute(), better presentation in case of multiple errors
authoreap <eap@opencascade.com>
Fri, 30 Apr 2010 12:00:24 +0000 (12:00 +0000)
committereap <eap@opencascade.com>
Fri, 30 Apr 2010 12:00:24 +0000 (12:00 +0000)
src/SMESH_SWIG/smeshDC.py

index 96f64da1a236335656891e212d68b5118c290eae..319ad7dccb0ee7266feb019e6fb0edd21df1d1d9 100644 (file)
@@ -1232,6 +1232,7 @@ class Mesh:
                     errText = "code %s" % -err.code
                 if errText: errText += ". "
                 errText += err.comment
+                if allReasons != "":allReasons += "\n"
                 allReasons += '"%s" failed on %s. Error: %s' %(err.algoName, shapeText, errText)
                 pass
 
@@ -1262,9 +1263,7 @@ class Mesh:
                     reason = "For unknown reason."+\
                              " Revise Mesh.Compute() implementation in smeshDC.py!"
                     pass
-                if allReasons != "":
-                    allReasons += "\n"
-                    pass
+                if allReasons != "":allReasons += "\n"
                 allReasons += reason
                 pass
             if allReasons != "":