1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-08 04:55:56 +08:00

more error info.

This commit is contained in:
Mrs4s 2021-01-09 00:24:30 +08:00
parent f40ac95fff
commit 9b232d2731

View File

@ -174,7 +174,7 @@ func (c *QQClient) highwayUploadByBDH(stream io.ReadSeeker, cmdId int32, ticket,
return nil, errors.Wrap(err, "highway upload error") return nil, errors.Wrap(err, "highway upload error")
} }
if rspHead.ErrorCode != 0 { if rspHead.ErrorCode != 0 {
return nil, errors.New("upload failed") return nil, errors.Errorf("upload failed: %d", rspHead.ErrorCode)
} }
if rspHead.RspExtendinfo != nil { if rspHead.RspExtendinfo != nil {
rspExt = rspHead.RspExtendinfo rspExt = rspHead.RspExtendinfo
@ -324,7 +324,7 @@ func (c *QQClient) highwayUploadFileMultiThreadingByBDH(path string, cmdId int32
return errors.Wrap(err, "highway upload error") return errors.Wrap(err, "highway upload error")
} }
if rspHead.ErrorCode != 0 { if rspHead.ErrorCode != 0 {
return errors.New("upload failed") return errors.Errorf("upload failed: %d", rspHead.ErrorCode)
} }
if rspHead.RspExtendinfo != nil { if rspHead.RspExtendinfo != nil {
rspExt = rspHead.RspExtendinfo rspExt = rspHead.RspExtendinfo