Compute(), better presentation in case of multiple errors

This commit is contained in:
eap 2010-04-30 12:00:24 +00:00
parent 80d4e38b71
commit 564a749ee3

View 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 != "":