aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-13 00:49:59 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-13 00:49:59 -0700
commita4740ca8365462832738ef18ad3df5875ef91cf4 (patch)
treeb77600590630514a74131649e99a59aca46d5c4b
parent2dd5b777f73b99d1943a051dd6716cd12e45f88e (diff)
downloadseaweedfs-a4740ca8365462832738ef18ad3df5875ef91cf4.tar.xz
seaweedfs-a4740ca8365462832738ef18ad3df5875ef91cf4.zip
fix compilation error for windows0.77
-rw-r--r--weed/server/filer_grpc_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go
index 41b4e9f90..b53c8c419 100644
--- a/weed/server/filer_grpc_server.go
+++ b/weed/server/filer_grpc_server.go
@@ -4,10 +4,10 @@ import (
"context"
"strconv"
- "bazil.org/fuse"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
+ "fmt"
)
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
}
if !found {
- return nil, fuse.ENOENT
+ return nil, fmt.Errorf("%s not found under %s", req.Name, req.Directory)
}
return &filer_pb.LookupDirectoryEntryResponse{