aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer_client_util.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer2/filer_client_util.go')
-rw-r--r--weed/filer2/filer_client_util.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filer_client_util.go b/weed/filer2/filer_client_util.go
index 829c652da..0986a54cd 100644
--- a/weed/filer2/filer_client_util.go
+++ b/weed/filer2/filer_client_util.go
@@ -105,8 +105,8 @@ func GetEntry(ctx context.Context, filerClient FilerClient, fullFilePath string)
glog.V(3).Infof("read %s request: %v", fullFilePath, request)
resp, err := client.LookupDirectoryEntry(ctx, request)
if err != nil {
- if err == ErrNotFound {
- return nil
+ if err == ErrNotFound || strings.Contains(err.Error(), ErrNotFound.Error()) {
+ return ErrNotFound
}
glog.V(3).Infof("read %s attr %v: %v", fullFilePath, request, err)
return err