mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Add a little helpful not to tasklist ordering warning
This commit is contained in:
parent
caf5d6af15
commit
9101b2e9ec
1 changed files with 4 additions and 2 deletions
|
@ -171,7 +171,8 @@ def check_ordering(task):
|
|||
raise TaskListError(msg)
|
||||
if task.phase < successor.phase:
|
||||
log.warn("The task {task} is specified as running before {other} "
|
||||
"although its phase '{phase}' already lies before the phase '{other_phase}'"
|
||||
"although its phase '{phase}' already lies before the phase '{other_phase}' "
|
||||
"(or the task has been placed in the wrong phase)"
|
||||
.format(task=task, other=successor, phase=task.phase, other_phase=successor.phase))
|
||||
for predecessor in task.predecessors:
|
||||
# Run through all successors and throw an error if the phase of the task
|
||||
|
@ -183,7 +184,8 @@ def check_ordering(task):
|
|||
raise TaskListError(msg)
|
||||
if task.phase > predecessor.phase:
|
||||
log.warn("The task {task} is specified as running after {other} "
|
||||
"although its phase '{phase}' already lies after the phase '{other_phase}'"
|
||||
"although its phase '{phase}' already lies after the phase '{other_phase}' "
|
||||
"(or the task has been placed in the wrong phase)"
|
||||
.format(task=task, other=predecessor, phase=task.phase, other_phase=predecessor.phase))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue