-
Notifications
You must be signed in to change notification settings - Fork 391
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
Add exception message for missing rules #1968
Add exception message for missing rules #1968
Conversation
CultureInfo.CurrentCulture, | ||
Strings.RulesNotFound), | ||
ErrorCategory.ResourceExists, | ||
new Exception(errorMessage), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where this error is thrown, are we sure the only reason could be missing rules @Tadas ?
Kicked off CI for now to see what tests say
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bergmeister I know we didn't get an answer to this; thoughts on merging for v1.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, on closer inspection of the diff, only 2 things are changing and they aren't of concern:
- errorMessage is passed into Exception instead of nothing, which is an improvement
- ErrorCategory is changed from ResourceExists to ResourceUnavailable, which I guess is a bit better but
ObjectNotFound
is maybe even better so will change it to that. This is the same category thatgci notExists
returns
PR Summary
Fixes #1875
PR Checklist
.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
to the beginning of the title and remove the prefix when the PR is ready.