echo icon indicating copy to clipboard operation
echo copied to clipboard

router: return error when registering nil handler

Open Narita-1095305 opened this issue 4 months ago • 0 comments

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.

Narita-1095305 avatar Sep 05 '25 16:09 Narita-1095305