HCFS: avoid verbose file not found exception stack trace

This commit is contained in:
Chris Lu
2019-09-01 21:40:26 -07:00
parent af8b413a9c
commit 60c9215a00
7 changed files with 9 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.L
entry, err := fs.filer.FindEntry(ctx, filer2.FullPath(filepath.ToSlash(filepath.Join(req.Directory, req.Name))))
if err != nil {
return nil, fmt.Errorf("%s not found under %s: %v", req.Name, req.Directory, err)
return nil, err
}
return &filer_pb.LookupDirectoryEntryResponse{