Browse Source

fix compilation error for windows

pull/655/head 0.77
Chris Lu 7 years ago
parent
commit
a4740ca836
  1. 4
      weed/server/filer_grpc_server.go

4
weed/server/filer_grpc_server.go

@ -4,10 +4,10 @@ import (
"context" "context"
"strconv" "strconv"
"bazil.org/fuse"
"github.com/chrislusf/seaweedfs/weed/operation" "github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util" "github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"fmt"
) )
func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.LookupDirectoryEntryRequest) (*filer_pb.LookupDirectoryEntryResponse, error) { func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.LookupDirectoryEntryRequest) (*filer_pb.LookupDirectoryEntryResponse, error) {
@ -17,7 +17,7 @@ func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.L
return nil, err return nil, err
} }
if !found { if !found {
return nil, fuse.ENOENT
return nil, fmt.Errorf("%s not found under %s", req.Name, req.Directory)
} }
return &filer_pb.LookupDirectoryEntryResponse{ return &filer_pb.LookupDirectoryEntryResponse{

Loading…
Cancel
Save