refactor: optimize third-party sdks

This commit is contained in:
Fu Diwei
2025-05-16 11:10:43 +08:00
parent dcd646b465
commit f3bbb9e8b2
43 changed files with 215 additions and 437 deletions

View File

@@ -90,7 +90,7 @@ func (c *Client) sendRequestWithResult(method string, path string, params interf
} else if tdata := tresp.GetData(); tdata == nil {
return fmt.Errorf("upyun api error: empty data")
} else if errcode := tdata.GetErrorCode(); errcode > 0 {
return fmt.Errorf("upyun api error: %d - %s", errcode, tdata.GetErrorMessage())
return fmt.Errorf("upyun api error: code='%d', message='%s'", errcode, tdata.GetErrorMessage())
}
return nil