Check for supported powershell for logging

This commit is contained in:
crschnick
2026-03-31 02:52:17 +00:00
parent 7976695c2c
commit 2cde2eaaa1

View File

@@ -75,6 +75,10 @@ public class TerminalPaneConfiguration {
var logFile = sc.getLocalSystemAccess().translateFromLocalSystemPath(FilePath.of(log));
if (sc.getOsType() == OsType.WINDOWS) {
if (LocalShell.getLocalPowershell().isEmpty()) {
throw ErrorEventFactory.expected(new IllegalStateException("PowerShell is required for terminal logging but it failed to start"));
}
var launcherScript = ScriptHelper.createExecScript(
ShellDialects.POWERSHELL,
sc,