[ui] ErrorHandler: analyse error (only used by computation for now)

This commit is contained in:
Julien-Haudegond 2020-09-03 14:56:35 +02:00
parent 95c7a9b87f
commit 78f7febeb7
4 changed files with 49 additions and 20 deletions

View file

@ -186,7 +186,9 @@ class TaskManager(BaseObject):
if chunksInConflict:
chunksStatus = set([chunk.status.status.name for chunk in chunksInConflict])
chunksName = [node.name for node in chunksInConflict]
msg = 'TaskManager.compute(): WARNING - Some nodes are already submitted with status: {}\nNodes: {}'.format(
# Syntax and terms are used on QML side to recognize the error
msg = '[COMPUTATION] Already Submitted:\n' \
'WARNING - Some nodes are already submitted with status: {}\nNodes: {}'.format(
', '.join(chunksStatus),
', '.join(chunksName)
)