Skip to content

fix: keep an error body's own message - #30

Closed
maxholman[bot] wants to merge 1 commit into
masterfrom
fix/keep-body-message
Closed

maxholman[bot] wants to merge 1 commit into
masterfrom
fix/keep-body-message

Conversation

@maxholman

@maxholman maxholman Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Closed without merging: not needed.

6af2c9f read a body by its code but took the message only from a
localised detail or the status text, so a body that sent its own
`message` lost it: a 401 that said "Unauthenticated" read as
"Unauthorized". A body's `message` is written to be sent, as
`toJSONSummary` writes it, so it comes first again, as in 16.0.1.

Co-Authored-By: LLM <noreply@block65.dev>
@maxholman

maxholman Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Not needed: the consumer's tests asserted an error message string; they now assert the code. 16.0.2's behaviour stands.

@maxholman maxholman Bot closed this Nov 8, 2026
@maxholman
maxholman Bot deleted the fix/keep-body-message branch November 8, 2026 16:00
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