mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +05:00
Compute(), better presentation in case of multiple errors
This commit is contained in:
parent
80d4e38b71
commit
564a749ee3
@ -1232,6 +1232,7 @@ class Mesh:
|
|||||||
errText = "code %s" % -err.code
|
errText = "code %s" % -err.code
|
||||||
if errText: errText += ". "
|
if errText: errText += ". "
|
||||||
errText += err.comment
|
errText += err.comment
|
||||||
|
if allReasons != "":allReasons += "\n"
|
||||||
allReasons += '"%s" failed on %s. Error: %s' %(err.algoName, shapeText, errText)
|
allReasons += '"%s" failed on %s. Error: %s' %(err.algoName, shapeText, errText)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -1262,9 +1263,7 @@ class Mesh:
|
|||||||
reason = "For unknown reason."+\
|
reason = "For unknown reason."+\
|
||||||
" Revise Mesh.Compute() implementation in smeshDC.py!"
|
" Revise Mesh.Compute() implementation in smeshDC.py!"
|
||||||
pass
|
pass
|
||||||
if allReasons != "":
|
if allReasons != "":allReasons += "\n"
|
||||||
allReasons += "\n"
|
|
||||||
pass
|
|
||||||
allReasons += reason
|
allReasons += reason
|
||||||
pass
|
pass
|
||||||
if allReasons != "":
|
if allReasons != "":
|
||||||
|
Loading…
Reference in New Issue
Block a user