mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:41:44 +08:00
Fix repeated error messages after pkg/errors removal
This commit is contained in:
parent
7735b5c694
commit
ba6730720d
2
backend/cache/cache.go
vendored
2
backend/cache/cache.go
vendored
|
@ -489,7 +489,7 @@ func NewFs(ctx context.Context, name, rootPath string, m configmap.Mapper) (fs.F
|
|||
f.opt.TempWritePath = filepath.ToSlash(f.opt.TempWritePath)
|
||||
f.tempFs, err = cache.Get(ctx, f.opt.TempWritePath)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create temp fs: %v: %w", err, err)
|
||||
return nil, fmt.Errorf("failed to create temp fs: %w", err)
|
||||
}
|
||||
fs.Infof(name, "Upload Temp Rest Time: %v", f.opt.TempWaitTime)
|
||||
fs.Infof(name, "Upload Temp FS: %v", f.opt.TempWritePath)
|
||||
|
|
|
@ -1006,7 +1006,7 @@ func hashSum(ctx context.Context, ht hash.Type, base64Encoded bool, downloadFlag
|
|||
return "", fmt.Errorf("hash unsupported: %w", err)
|
||||
}
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("failed to get hash %v from backend: %v: %w", ht, err, err)
|
||||
return "", fmt.Errorf("failed to get hash %v from backend: %w", ht, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user