We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e849068 commit ae712f7Copy full SHA for ae712f7
Engine/ScriptAnalyzer.cs
@@ -822,13 +822,13 @@ private void Initialize(
822
// Ensure that rules were actually loaded
823
if (rules == null || rules.Any() == false)
824
{
825
+ string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.RulesNotFound);
826
+
827
this.outputWriter.ThrowTerminatingError(
828
new ErrorRecord(
- new Exception(),
- string.Format(
829
- CultureInfo.CurrentCulture,
830
- Strings.RulesNotFound),
831
- ErrorCategory.ResourceExists,
+ new Exception(errorMessage),
+ errorMessage,
+ ErrorCategory.ObjectNotFound,
832
this));
833
}
834
0 commit comments