mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-11 20:06:58 +00:00
Log status code from Jira if issue creation fails (#10622)
This commit is contained in:
parent
02f72e8e86
commit
485c426da2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue