From 64391d538d4c21901e73ba6c0d0f6e8ee0a7cfda Mon Sep 17 00:00:00 2001 From: kimmy lin <30611210+countvonzero@users.noreply.github.com> Date: Sat, 5 Aug 2023 13:29:46 +0200 Subject: [PATCH] more simplification --- api/grpcserver/mesh_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/grpcserver/mesh_service.go b/api/grpcserver/mesh_service.go index 7e28a5028f..075098b793 100644 --- a/api/grpcserver/mesh_service.go +++ b/api/grpcserver/mesh_service.go @@ -588,7 +588,7 @@ func (s MeshService) EpochStream(req *pb.EpochStreamRequest, stream pb.MeshServi default: malicious, err := s.cdb.IsMalicious(header.NodeID) if err != nil { - return status.Error(codes.Internal, err.Error()) + return err } if malicious { return nil