Skip to content

Fix RPC recover re-panicking on non-error panic values#155

Merged
mattn merged 1 commit into
masterfrom
fix-rpc-recover
Jul 8, 2026
Merged

Fix RPC recover re-panicking on non-error panic values#155
mattn merged 1 commit into
masterfrom
fix-rpc-recover

Conversation

@mattn

@mattn mattn commented Jul 8, 2026

Copy link
Copy Markdown
Owner

recover() blocks asserted r.(error), which panics again when the panic value is a string. Use fmt.Errorf instead.

@mattn
mattn merged commit 6fb7c41 into master Jul 8, 2026
2 checks passed
@mattn
mattn deleted the fix-rpc-recover branch July 8, 2026 01:01
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