Skip to content

Commit aa32aa1

Browse files
🩹[Patch]: Improve error handling and output error summary (#23)
## Description This pull request makes a minor improvement to error handling in the PowerShell documentation build script. Instead of writing errors as errors, it now logs them as warnings with more context when markdown help generation fails for a command. * Improved error reporting by changing `Write-Error` to `Write-Warning` with a descriptive message in `Build-PSModuleDocumentation.ps1`.
1 parent adc0da7 commit aa32aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers/Build-PSModuleDocumentation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
Error = $_
8686
ErrorString = $_.ToString()
8787
})
88-
Write-Error $_
88+
Write-Warning "Failed to generate markdown help for $($command.Name): $_"
8989
}
9090
}
9191
Write-Host '::endgroup::'

0 commit comments

Comments
 (0)