-
Notifications
You must be signed in to change notification settings - Fork 394
Add exception message for missing rules #1968
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
Changes from 3 commits
76163e2
3c4d857
d224af9
61a4f2e
a822b6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -822,13 +822,13 @@ private void Initialize( | |
// Ensure that rules were actually loaded | ||
if (rules == null || rules.Any() == false) | ||
{ | ||
string errorMessage = string.Format( CultureInfo.CurrentCulture, Strings.RulesNotFound); | ||
|
||
this.outputWriter.ThrowTerminatingError( | ||
new ErrorRecord( | ||
new Exception(), | ||
string.Format( | ||
CultureInfo.CurrentCulture, | ||
Strings.RulesNotFound), | ||
ErrorCategory.ResourceExists, | ||
new Exception(errorMessage), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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, | ||
ErrorCategory.ResourceUnavailable, | ||
bergmeister marked this conversation as resolved.
Show resolved
Hide resolved
|
||
this)); | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.