|
@ -119,7 +119,7 @@ func (r Request) Create() (resp *Response, err error) { |
|
|
} |
|
|
} |
|
|
log.Infof("response status: %d", client.HTTPStatus) |
|
|
log.Infof("response status: %d", client.HTTPStatus) |
|
|
if http.StatusCreated != client.HTTPStatus { |
|
|
if http.StatusCreated != client.HTTPStatus { |
|
|
log.Errorf("unexpected response") |
|
|
|
|
|
|
|
|
client.Print() |
|
|
err = errors.New("unexpected response") |
|
|
err = errors.New("unexpected response") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|