Azure Pipelines Scaler: Improve error logging using poolID #3996
Closed
Description
Proposal
Currently, in case of any error validating the poolID, the error is hidden:
body, err := getAzurePipelineRequest(ctx, url, metadata, httpClient)
if err != nil {
return -1, fmt.Errorf("agent pool with id `%s` not found", poolID)
}
This makes impossible to troubleshoot the reason behind the fails, we should just return the original error
Use-Case
No response
Anything else?
No response
Metadata
Assignees
Type
Projects
Status
Done