Skip to content

Azure Pipelines Scaler: Improve error logging using poolID #3996

Closed
@JorTurFer

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

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions