From 7982102388741954a0b4d0690110949e8d15af68 Mon Sep 17 00:00:00 2001 From: Future Outlier Date: Fri, 5 Jan 2024 23:28:07 +0800 Subject: [PATCH] improve agent error message Signed-off-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()