From 8c2b7fe548d06dfda2c0b97db3a0aa28d077d4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Tue, 11 Sep 2018 16:56:13 +0200 Subject: [PATCH] * added url to jira exception --- src/App/Service/JiraCollectorService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App/Service/JiraCollectorService.php b/src/App/Service/JiraCollectorService.php index 0fbf767..2fb37f2 100755 --- a/src/App/Service/JiraCollectorService.php +++ b/src/App/Service/JiraCollectorService.php @@ -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);