Skip to content

Commit 8f2fa6b

Browse files
author
GDIBass
committed
changed exception message
1 parent 49839e3 commit 8f2fa6b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/Workflow/EventListener/GuardListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function getVariables(GuardEvent $event)
5757
$token = $this->tokenStorage->getToken();
5858

5959
if (null === $token) {
60-
throw new InvalidTokenConfigurationException('No token is set');
60+
throw new InvalidTokenConfigurationException(sprintf('There are no token available for workflow %s', $event->getWorkflowName()));
6161
}
6262

6363
if (null !== $this->roleHierarchy) {

src/Symfony/Component/Workflow/Exception/InvalidTokenConfigurationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
*/
1919
class InvalidTokenConfigurationException extends LogicException implements ExceptionInterface
2020
{
21-
}
21+
}

src/Symfony/Component/Workflow/Tests/EventListener/GuardListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testWithSupportedEventAndAccept()
7171

7272
/**
7373
* @expectedException \Symfony\Component\Workflow\Exception\InvalidTokenConfigurationException
74-
* @expectedExceptionMessage No token is set
74+
* @expectedExceptionMessage There are no token available for workflow unnamed
7575
*/
7676
public function testWithNoTokenStorage()
7777
{

0 commit comments

Comments
 (0)