Skip to content

Conversation

@pchickey
Copy link
Contributor

Passing the error out to the host via responder.fail is all thats needed here - the host is responsible for reporting that error, so theres no need for the guest to panic afterwards.

So, Responder::fail no longer needs a return value, and the macro no longer needs to unwrap it.

passing the error out to the host via responder.fail is all thats needed
here - the host is responsible for reporting that error, so theres no
need for the guest to panic afterwards.

So, Responder::fail no longer needs a return value, and the macro no
longer needs to unwrap it
@pchickey pchickey merged commit a18ffc3 into main Jan 15, 2026
5 checks passed
@pchickey pchickey deleted the pch/http_server_dont_panic_on_error branch January 15, 2026 23:31
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.

3 participants