chore: seed migration objects batch 5
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
)
|
||||
|
||||
@@ -198,6 +199,9 @@ func (c *Client) parseError(resp *http.Response) error {
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
_ = json.Unmarshal(body, &envelope)
|
||||
if envelope.Message == "" && envelope.Reason == "" {
|
||||
g.Log().Warningf(context.Background(), "IM API returned non-success status:%d url:%s body:%s", resp.StatusCode, resp.Request.URL.String(), string(body))
|
||||
}
|
||||
return stableError(envelope.Message, envelope.Reason)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user