Skip to content

Commit 7ed9e4c

Browse files
Update scripts/main.ps1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 353cbcc commit 7ed9e4c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/main.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ $settingsFilePath = Resolve-Path -Path $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT
1111
} | Format-List | Out-String
1212

1313
if (!(Test-Path -Path $settingsFilePath)) {
14-
Write-Error "Settings file not found at path: $settingsFilePath"
15-
exit 1
14+
throw "Settings file not found at path: $settingsFilePath"
1615
}
17-
1816
Set-GitHubOutput -Name CodePath -Value $codePath
1917
Set-GitHubOutput -Name TestPath -Value $testPath
2018
Set-GitHubOutput -Name SettingsFilePath -Value $settingsFilePath

0 commit comments

Comments
 (0)