Skip to content

Commit 7f30a1f

Browse files
committed
fix: improve error handling and test robustness
- Add error handling to the `router.Run()` call in `example.go` with a panic if an error occurs Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 90a7c66 commit 7f30a1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_examples/example.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@ func main() {
2525
},
2626
MaxAge: 12 * time.Hour,
2727
}))
28-
router.Run()
28+
29+
if err := router.Run(); err != nil {
30+
panic(err)
31+
}
2932
}

0 commit comments

Comments
 (0)