From c1bb76d709e805fe61b74490898753434d41458c Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 30 Jan 2024 08:21:42 -0800 Subject: [PATCH] fix nil error --- weed/server/filer_grpc_server_dlm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_grpc_server_dlm.go b/weed/server/filer_grpc_server_dlm.go index a7cef4032..f3765e549 100644 --- a/weed/server/filer_grpc_server_dlm.go +++ b/weed/server/filer_grpc_server_dlm.go @@ -101,7 +101,7 @@ func (fs *FilerServer) FindLockOwner(ctx context.Context, req *filer_pb.FindLock if owner == "" { 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 { return nil, status.Error(codes.Internal, err.Error())