Browse Source

fix nil error

pull/5637/head
chrislu 11 months ago
parent
commit
c1bb76d709
  1. 2
      weed/server/filer_grpc_server_dlm.go

2
weed/server/filer_grpc_server_dlm.go

@ -101,7 +101,7 @@ func (fs *FilerServer) FindLockOwner(ctx context.Context, req *filer_pb.FindLock
if owner == "" { if owner == "" {
glog.V(0).Infof("find lock %s moved to %v: %v", req.Name, movedTo, err) glog.V(0).Infof("find lock %s moved to %v: %v", req.Name, movedTo, err)
return nil, status.Error(codes.NotFound, err.Error())
return nil, status.Error(codes.NotFound, fmt.Sprintf("lock %s not found", req.Name))
} }
if err != nil { if err != nil {
return nil, status.Error(codes.Internal, err.Error()) return nil, status.Error(codes.Internal, err.Error())

Loading…
Cancel
Save