mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-12 23:09:33 +01:00
fix nil error
This commit is contained in:
1 parent
ac50d8a822
commit
c1bb76d709
1 file changed
+1
-1
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user