Log status code from Jira if issue creation fails (#10622)

This commit is contained in:
Daniel Walsh 2023-09-08 23:22:43 +01:00 committed by GitHub
parent 02f72e8e86
commit 485c426da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ func main() {
json.Unmarshal([]byte(body), &createdIssue)
if resp.StatusCode != http.StatusCreated {
fmt.Println(fmt.Sprintf("failed to create new JIRA issue"))
fmt.Println(fmt.Sprintf("failed to create new JIRA issue, got status code: %d", resp.StatusCode))
os.Exit(1)
}