Skip to content

Commit

Permalink
Adding comment to explain why ShowStackTrace doesn't impace ScriptSta…
Browse files Browse the repository at this point in the history
…ckTrace
  • Loading branch information
ArmaanMcleod committed Jun 7, 2021
1 parent dd70e8b commit 5017977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/Output.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ function Format-ErrorMessage {
else {
[void]$errorMessageSb.Append($Err.Exception.ToString())

# Since we might want to dump error record log, ShowStackTrace does not impact ScriptStackTrace
if ($null -ne $Err.ScriptStackTrace) {
[void]$errorMessageSb.Append([Environment]::NewLine + $Err.ScriptStackTrace)
}
Expand Down

0 comments on commit 5017977

Please sign in to comment.