Browse Source

return error if not found

pull/2321/head
Chris Lu 3 years ago
parent
commit
0cda61d539
  1. 3
      weed/pb/filer_pb/filer_client.go

3
weed/pb/filer_pb/filer_client.go

@ -38,9 +38,6 @@ func GetEntry(filerClient FilerClient, fullFilePath util.FullPath) (entry *Entry
// glog.V(3).Infof("read %s request: %v", fullFilePath, request)
resp, err := LookupEntry(client, request)
if err != nil {
if err == ErrNotFound {
return nil
}
glog.V(3).Infof("read %s %v: %v", fullFilePath, resp, err)
return err
}

Loading…
Cancel
Save