Salome HOME
0022172: [CEA 790] create the groups corresponding to domains
authoreap <eap@opencascade.com>
Fri, 24 May 2013 12:00:21 +0000 (12:00 +0000)
committereap <eap@opencascade.com>
Fri, 24 May 2013 12:00:21 +0000 (12:00 +0000)
Fix treating a warning sent by algorithm.Compute() - print "Warning"
instead of "Error"

src/SMESH_SWIG/smeshBuilder.py

index c58883f743e9367fa8fa07846826d353d1d6fb0a..a7ddf41916821c16995785da19ea8d634d405a51 100644 (file)
@@ -1354,7 +1354,10 @@ class Mesh:
                 if errText: errText += ". "
                 errText += err.comment
                 if allReasons != "":allReasons += "\n"
-                allReasons += '-  "%s" failed%s. Error: %s' %(err.algoName, shapeText, errText)
+                if ok:
+                    allReasons += '-  "%s"%s - %s' %(err.algoName, shapeText, errText)
+                else:
+                    allReasons += '-  "%s" failed%s. Error: %s' %(err.algoName, shapeText, errText)
                 pass
 
             # Treat hyp errors