Skip to content

fix: name the invalid origin in its error - #1499

Merged
dunglas merged 1 commit into
mainfrom
fix/invalid-origin-error
Dec 1, 2026
Merged

dunglas merged 1 commit into
mainfrom
fix/invalid-origin-error

Conversation

@dunglas

@dunglas dunglas commented Dec 1, 2026

Copy link
Copy Markdown
Owner

An origin that parses as a URL but has the wrong shape, such as NULL or https://example.com/, produced an error ending in %!w(<nil>), because the parse error it wrapped was nil. The error now quotes the origin; a parse error is still wrapped when there is one.

@dunglas
dunglas merged commit ef85ad5 into main Dec 1, 2026
49 of 50 checks passed
@dunglas
dunglas deleted the fix/invalid-origin-error branch December 1, 2026 16:14
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.

1 participant