mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +08:00
handle download delete file error #199
This commit is contained in:
parent
5f6cdcab64
commit
a455af2084
@ -284,11 +284,13 @@ func (dtu *DownloadTaskUnit) panHTTPClient() (client *requester.HTTPClient) {
|
||||
return client
|
||||
}
|
||||
|
||||
// handleError 下载错误处理器
|
||||
func (dtu *DownloadTaskUnit) handleError(result *taskframework.TaskUnitRunResult) {
|
||||
switch value := result.Err.(type) {
|
||||
case *apierror.ApiError:
|
||||
switch value.ErrCode() {
|
||||
case apierror.ApiCodeFileNotFoundCode:
|
||||
case apierror.ApiCodeForbiddenFileInTheRecycleBin:
|
||||
result.NeedRetry = false
|
||||
break
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user