From 2c17372e2f8824778941dbc26bc468d11590329a Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 24 May 2013 12:00:21 +0000 Subject: [PATCH] 0022172: [CEA 790] create the groups corresponding to domains Fix treating a warning sent by algorithm.Compute() - print "Warning" instead of "Error" --- src/SMESH_SWIG/smeshBuilder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index c58883f74..a7ddf4191 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -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