1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-27 21:38:54 +02:00

add the response to the error message

This commit is contained in:
Thiago Oliveira 2018-09-17 08:44:35 -07:00 committed by Andy Grunwald
parent 2990af0701
commit 5d5990ab65

View File

@ -743,9 +743,10 @@ func (s *IssueService) DeleteComment(issueID, commentID string) error {
return err
}
_, err = s.client.Do(req, nil)
resp, err := s.client.Do(req, nil)
if err != nil {
return err
jerr := NewJiraError(resp, err)
return jerr
}
return nil