fix(pwsh): fixed bad error code passing to Set-PoshContext

This commit is contained in:
Aria Bounds 2024-07-28 23:42:55 +00:00 committed by Jan De Dobbeleer
parent 5a6e98946a
commit f38998ef18

View file

@ -387,8 +387,6 @@ Example:
}
catch {}
}
Set-PoshContext $script:ErrorCode
}
function Update-PoshErrorCode {
@ -446,6 +444,8 @@ Example:
Update-PoshErrorCode
}
Set-PoshContext $script:ErrorCode
$cleanPSWD = Get-CleanPSWD
$stackCount = global:Get-PoshStackCount
$terminalWidth = Get-TerminalWidth