Skip to content

Commit 61a4f2e

Browse files
authored
Apply suggestions from code review
1 parent d224af9 commit 61a4f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/ScriptAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,13 +822,13 @@ private void Initialize(
822822
// Ensure that rules were actually loaded
823823
if (rules == null || rules.Any() == false)
824824
{
825-
string errorMessage = string.Format( CultureInfo.CurrentCulture, Strings.RulesNotFound);
825+
string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.RulesNotFound);
826826

827827
this.outputWriter.ThrowTerminatingError(
828828
new ErrorRecord(
829829
new Exception(errorMessage),
830830
errorMessage,
831-
ErrorCategory.ResourceUnavailable,
831+
ErrorCategory.ObjectNotFound,
832832
this));
833833
}
834834

0 commit comments

Comments
 (0)