From 842d3a8e9d0233c282ea5c67e4e37754fe7d1fbb Mon Sep 17 00:00:00 2001 From: Future-Outlier Date: Tue, 9 Jan 2024 04:08:42 +0800 Subject: [PATCH] Improve Agent Metadata Service Error Message (#4682) Signed-off-by: Future Outlier Co-authored-by: Future Outlier --- flyteplugins/go/tasks/plugins/webapi/agent/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 73a98782bc..b20bd62d7a 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -366,10 +366,10 @@ func initializeAgentRegistry(cfg *Config, connectionCache map[*Agent]*grpc.Clien } if !ok { - return nil, fmt.Errorf("failed to list agent with a non-gRPC error : [%v]", err) + return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentDeployment, err) } - return nil, fmt.Errorf("failed to list agent with error: [%v]", err) + return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentDeployment, err) } agents := res.GetAgents()