Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 63305fe232 |
1 changed files with 4 additions and 0 deletions
|
|
@ -48,6 +48,10 @@ func Execute(suffix, username, title, text string) (err error) {
|
|||
resp, err := http.Post(baseURL + suffix, "application/json",
|
||||
strings.NewReader(string(body)))
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if resp.StatusCode < 200 || resp.StatusCode > 299 {
|
||||
err = errors.New(resp.Status)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue