TW-1704: Task: Use Task::identifier to reference the task
To achieve consistent output, use a helper method to generate a proper handle - ID for tasks with non-zero ID, UUID otherwise.
This commit is contained in:
committed by
Paul Beckingham
parent
1236abc7d5
commit
2d25cf6f59
@@ -145,7 +145,7 @@ void dependencyChainOnComplete (Task& task)
|
||||
// Nag about broken chain.
|
||||
if (context.config.getBoolean ("dependency.reminder"))
|
||||
{
|
||||
std::cout << format (STRING_DEPEND_BLOCKED, task.id)
|
||||
std::cout << format (STRING_DEPEND_BLOCKED, task.identifier ())
|
||||
<< "\n";
|
||||
|
||||
for (auto& b : blocking)
|
||||
@@ -200,7 +200,7 @@ void dependencyChainOnStart (Task& task)
|
||||
// broken chain.
|
||||
if (blocking.size ())
|
||||
{
|
||||
std::cout << format (STRING_DEPEND_BLOCKED, task.id)
|
||||
std::cout << format (STRING_DEPEND_BLOCKED, task.identifier ())
|
||||
<< "\n";
|
||||
|
||||
for (auto& b : blocking)
|
||||
|
||||
Reference in New Issue
Block a user