Skip to content

Commit

Permalink
Improve Agent Metadata Service Error Message (#4682)
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
Co-authored-by: Future Outlier <[email protected]>
  • Loading branch information
Future-Outlier and Future Outlier authored Jan 8, 2024
1 parent 8ac697e commit 842d3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flyteplugins/go/tasks/plugins/webapi/agent/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 842d3a8

Please sign in to comment.