Skip to content

Conversation

@anamnavi
Copy link
Member

@anamnavi anamnavi commented Jan 5, 2026

If a local repository is registered that is not available (for example private repository when machine is out of office), then an error is thrown. In the case where multiple repositories were requested to be checked, the error gets swallowed up and the user is not informed about the error. This PR ensures that the error is caught and populated in ErrorRecord and a warning or error is written.

Note: To ensure a fix can be taken into the next release, this PR was broken up. #1926 will be taken first in favor of this PR. This PR will be to ensure only an error or warning is written based on the condition.

PR Summary

PR Context

Resolves #1923

PR Checklist

annavied_microsoft added 2 commits January 6, 2026 14:24
@anamnavi
Copy link
Member Author

anamnavi commented Jan 8, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Jan 8, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Jan 9, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

anamnavi commented Jan 9, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi anamnavi changed the title Local repository network connection failure should not fail silently Local repository network connection failure should write warning or error Jan 12, 2026
@anamnavi anamnavi marked this pull request as draft January 12, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find-PSResource stops searching, when one of registered repositories is not available.

2 participants