Skip to content

Commit

Permalink
improve agent error message
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Jan 5, 2024
1 parent cb37291 commit 7982102
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 7982102

Please sign in to comment.