Skip to content

ps1: peek the inner exception on download failure - #2392

Merged
mistydemeo merged 1 commit into
axodotdev:mainfrom
woodruffw-forks:ww/ps1-take-2
May 15, 2026
Merged

mistydemeo merged 1 commit into
axodotdev:mainfrom
woodruffw-forks:ww/ps1-take-2

Conversation

@woodruffw

@woodruffw woodruffw commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

This tries to make error messages from PowerShell's DownloadFile less opaque by peeking through the inner exceptions for the first non-empty one. I'm pretty sure this is the right approach, but I'm by no means a PowerShell expert.

xref astral-sh/uv#16309 as an example of error opacity.

Signed-off-by: William Woodruff <[email protected]>

Be less verbose

Signed-off-by: William Woodruff <[email protected]>

@mistydemeo mistydemeo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't been able to test, but looks right to me.

@mistydemeo
mistydemeo merged commit 6d8898e into axodotdev:main May 15, 2026
17 checks passed
@woodruffw

Copy link
Copy Markdown
Contributor Author

Thanks @mistydemeo!

@woodruffw
woodruffw deleted the ww/ps1-take-2 branch May 15, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants