mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
better exception description when task workflow is not found
This commit is contained in:
parent
b39005cca9
commit
3055973b06
@ -34,3 +34,9 @@ Version 1.5.8
|
||||
=============
|
||||
|
||||
- add returnPath to page Show and List for Single tasks ;
|
||||
|
||||
Master branch
|
||||
=============
|
||||
|
||||
- better exception description when task workflow is not found ;
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user