mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-25 11:39:12 +08:00
fix compilation error for windows
This commit is contained in:
parent
2dd5b777f7
commit
a4740ca836
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user