diff --git a/src/GitPrompt.ps1 b/src/GitPrompt.ps1 index 010af199c..d1541a20b 100644 --- a/src/GitPrompt.ps1 +++ b/src/GitPrompt.ps1 @@ -330,6 +330,10 @@ $PoshGitVcsPrompt = { if ($s) { Write-Prompt $s.BeforeText -BackgroundColor $s.BeforeBackgroundColor -ForegroundColor $s.BeforeForegroundColor Write-Prompt "Error: $_" -BackgroundColor $s.ErrorBackgroundColor -ForegroundColor $s.ErrorForegroundColor + if ($s.Debug) { + Write-Host + Write-Verbose "PoshGitVcsPrompt error details: $($_ | Format-List * -Force | Out-String)" -Verbose + } Write-Prompt $s.AfterText -BackgroundColor $s.AfterBackgroundColor -ForegroundColor $s.AfterForegroundColor } }