From b570af020c0cae90efac7890b5d9d890cec913b9 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Fri, 5 Oct 2018 05:32:17 +1000 Subject: [PATCH] added porting guide for PowerShell EAP changes (#46451) --- docs/docsite/rst/porting_guides/porting_guide_2.8.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst index f592a6f9b7..c2fff98bc1 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_2.8.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_2.8.rst @@ -58,6 +58,12 @@ Modules Major changes in popular modules are detailed here +The exec wrapper that runs PowerShell modules has been changed to set ``$ErrorActionPreference = "Stop"`` globally. +This may mean that custom modules can fail if they implicitly relied on this behaviour. To get the old behaviour back, +add ``$ErrorActionPreference = "Continue"`` to the top of the module. This change was made to restore the old behaviour +of the EAP that was accidentally removed in a previous release and ensure that modules are more resiliant to errors +that may occur in execution. + Modules removed ---------------