* added url to jira exception

This commit is contained in:
Dávid Danyi 2018-09-11 16:56:13 +02:00
parent 176cbd86f0
commit 8c2b7fe548

View File

@ -93,7 +93,10 @@ class JiraCollectorService
->send();
if (!$response->isSuccess()) {
throw new \UnexpectedValueException("Bad JIRA result", $response->getStatusCode());
throw new \UnexpectedValueException(sprintf(
"Bad JIRA result for URL:\n%s",
$kanbanBoardUri
), $response->getStatusCode());
}
$parsedJsonData = Decoder::decode($response->getBody(), Json::TYPE_ARRAY);