Skip to content

Commit c0faa8b

Browse files
committed
fixed #17
1 parent b80cf39 commit c0faa8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Issue/IssueService.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace JiraRestApi\Issue;
44

5+
use JiraRestApi\JiraException;
6+
57
class IssueService extends \JiraRestApi\JiraClient
68
{
79
private $uri = '/issue';
@@ -167,7 +169,8 @@ public function findTransitonId($issueIdOrKey, $transitionToName)
167169
}
168170
}
169171

170-
return;
172+
// transition keyword not found
173+
throw new JiraException('Transition name \'' . $transitionToName . '\' not found on JIRA Server.');
171174
}
172175

173176
/**

0 commit comments

Comments
 (0)