mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
better exception description when task workflow is not found
This commit is contained in:
@@ -60,7 +60,7 @@ class TaskWorkflowManager implements SupportStrategyInterface
|
||||
throw new \LogicException("More than one TaskWorkflowDefinition supports "
|
||||
. "this task. This should not happens.");
|
||||
} elseif ($count === 0) {
|
||||
throw new \LogicException("No taskWorkflowDefinition supports this task.");
|
||||
throw new \LogicException(\sprintf("No taskWorkflowDefinition supports this task type: %s (task id: %s).", $task->getType(), $task->getId()));
|
||||
}
|
||||
|
||||
return $definitions[0];
|
||||
|
Reference in New Issue
Block a user