Skip to content

Commit 5c3ff5d

Browse files
committed
refined http response status.
1 parent bea98cb commit 5c3ff5d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Issue/IssueService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,7 @@ public function getCustomFields($priorityId)
550550
* add watcher to issue.
551551
*
552552
* @param mixed $issueIdOrKey
553-
* @param object $watcher
554-
* @param int $worklogId
553+
* @param string $watcher watcher id
555554
*
556555
* @return bool
557556
*/

src/JiraClient.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,10 @@ public function exec($context, $post_data = null, $custom_request = null)
197197
}
198198

199199
// HostNotFound, No route to Host, etc Network error
200-
$this->log->addError('CURL Error: = '.$body);
201-
throw new JiraException('CURL Error: = '.$body);
200+
$msg = sprintf("CURL Error: http response=%d, %s", $this->http_response, $body);
201+
202+
$this->log->addError($msg);
203+
throw new JiraException($msg);
202204
} else {
203205
// if request was ok, parsing http response code.
204206
$this->http_response = curl_getinfo($ch, CURLINFO_HTTP_CODE);

0 commit comments

Comments
 (0)