diff --git a/mesh/server.go b/mesh/server.go index 6b7960d..6d48fd3 100644 --- a/mesh/server.go +++ b/mesh/server.go @@ -151,6 +151,9 @@ func (m *Mesh) StartServer() error { grpcServer := grpc.NewServer(opts...) meshv1.RegisterMeshServiceServer(grpcServer, meshServer) reflection.Register(grpcServer) - grpcServer.Serve(lis) + err = grpcServer.Serve(lis) + if err != nil { + return err + } return nil }