We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ffae0 commit 1e6eda9Copy full SHA for 1e6eda9
1 file changed
Transpilers/Core/PipeScript.Template.psx.ps1
@@ -557,7 +557,15 @@ $replacePattern
557
558
# Now, we run the replacer.
559
# This should run each inline script and replace the text.
560
- return $ReplacePattern.Replace($fileText, $ReplacementEvaluator)
+ $replacement =
561
+ try {
562
+ $ReplacePattern.Replace($fileText, $ReplacementEvaluator)
563
+ } catch {
564
+ $ex = $_
565
+ Write-Error -ErrorRecord $ex
566
+ # $PSCmdlet.WriteError($ex)
567
+ }
568
+ return $replacement
569
}
570
571
0 commit comments