Skip to content

[release/v7.4.0-preview.7]Fix Get-Service non-terminating error message to include category - #20529

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
release/v7.4.0-preview.7from
backport-20276
Oct 19, 2023
Merged

[release/v7.4.0-preview.7]Fix Get-Service non-terminating error message to include category#20529
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
release/v7.4.0-preview.7from
backport-20276

Conversation

@adityapatwardhan

Copy link
Copy Markdown
Member

Backport #20276

…20276)

et-Service cmdlet has a common method for emitting non-terminating error message. Unfortunately, it assumed that if there isn't an inner exception message to just leave the content blank when formatting the error string. Fix here is that if there isn't an inner exception message, we use the string value of the error category instead of an empty string.
@microsoft-github-policy-service

microsoft-github-policy-service Bot commented Oct 19, 2023

Copy link
Copy Markdown
Contributor

📣 Hey Aditya Patwardhan (@adityapatwardhan), how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://forms.office.com/r/P926k48jRJ

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 23, 2023
@B-Art

Bart van den Donk (B-Art) commented Aug 2, 2024

Copy link
Copy Markdown

McpManagementService
NPSMSvc_*
and
WaaSMedicSvc
Still give a PermissionDenied message.
This only happens in Pwsh 7.4.x not in the "old" PowerShell 5.x.

sfc /scannow Solved the MUI message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants