You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If access to a path is denied the PSRule CLI tool terminate with an exception. This should be better handled.
Error output
Unhandled exception: System.UnauthorizedAccessException: Access to the path 'C:\Users\nnn\Application Data' is denied.
at System.IO.Enumeration.FileSystemEnumerator`1.CreateRelativeDirectoryHandle(ReadOnlySpan`1 relativePath, String fullPath)
at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
at PSRule.Pipeline.PathBuilder.FindFiles(String path) in /_/src/PSRule/Pipeline/PathBuilder.cs:line 98
at PSRule.Pipeline.PathBuilder.Add(String[] path) in /_/src/PSRule/Pipeline/PathBuilder.cs:line 67
at PSRule.Pipeline.InvokePipelineBuilderBase.InputPath(String[] path) in /_/src/PSRule/Pipeline/InvokePipelineBuilder.cs:line 63
at PSRule.Tool.ClientHelper.RunAnalyze(AnalyzerOptions operationOptions, ClientContext clientContext, InvocationContext invocation) in /_/src/PSRule.Tool/ClientHelper.cs:line 29
at PSRule.Tool.ClientBuilder.<AddAnalyze>b__14_0(InvocationContext invocation) in /_/src/PSRule.Tool/ClientBuilder.cs:line 97
at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext context)
at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
Module in use and version:
Module: PSRule
Version: 2.8.0
The text was updated successfully, but these errors were encountered:
Description of the issue
If access to a path is denied the PSRule CLI tool terminate with an exception. This should be better handled.
Error output
Module in use and version:
The text was updated successfully, but these errors were encountered: