Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling incorrect. Multiple throws outside a try/catch #33

Closed
Rick-Jongbloed opened this issue Jul 24, 2023 · 1 comment · Fixed by #41
Closed

Error handling incorrect. Multiple throws outside a try/catch #33

Rick-Jongbloed opened this issue Jul 24, 2023 · 1 comment · Fixed by #41

Comments

@Rick-Jongbloed
Copy link
Member

For example, when the group cannot be found, the script is cancelled without an audit message.

16:37:35.33 Failed to grant permission '{ "PermissionDefinitionId": "ae799ab5-9be9-8e3c-d0cb-cabed9840864", "PermissionIdentification": { "Identification": "62f2a2b5-d1f7-1199-1a97-7c6e1a882906" } }'
16:37:35.33 Failed to grant permission '{ "PermissionDefinitionId": "ae799ab5-9be9-8e3c-d0cb-cabed9840864", "PermissionIdentification": { "Identification": "62f2a2b5-d1f7-1199-1a97-7c6e1a882906" } }', message: Error running script
16:37:33.02 [Error] PowerShell script did not complete successfully
16:37:33.01 [Error] No Group found that matches filter 'Name -eq "140220"'
16:34:12.17 Preparing grant action for processing

@Rick-Jongbloed Rick-Jongbloed changed the title Error handling incorrect. Multiple throws without a catch Error handling incorrect. Multiple throws outside a try/catch Jul 24, 2023
@rhouthuijzen rhouthuijzen linked a pull request May 28, 2024 that will close this issue
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 a pull request may close this issue.

1 participant