mirror of
https://gitee.com/zhangsken/aliyunpan.git
synced 2026-10-16 10:29:42 +08:00
handle download delete file error #199
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user