We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a63e3 commit 9c1ffdbCopy full SHA for 9c1ffdb
drivers/aliyundrive/util.go
@@ -62,6 +62,8 @@ func (d *AliDrive) request(url, method string, callback base.ReqCallback, resp i
62
return d.request(url, method, callback, resp)
63
}
64
return nil, errors.New(e.Message), e
65
+ } else if res.IsError() {
66
+ return nil, errors.New("bad status code " + res.Status()), e
67
68
return res.Body(), nil, e
69
0 commit comments