Skip to content

Conversation

Narita-1095305
Copy link

Currently, router.insert only logs a warning when a nil handler is registered,
and continues processing. This can lead to runtime panics due to unnoticed misconfiguration.

This change makes router registration fail fast by returning an error
when a nil handler is provided, so that misconfigurations can be detected earlier.

…nst nil handler; tests: add panic assertions for nil handler registration
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