Skip to content

Commit 198ed8a

Browse files
author
Tugba Dartici
committed
SetErrorHandler added.
1 parent 209fd5d commit 198ed8a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

router.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ func (r *Router) SetPanicHandler(fn PanicHandle) {
8282
}
8383
}
8484

85+
func (r *Router) SetErrorHandler(fn ErrorHandle) {
86+
r.errorHandler = fn
87+
}
88+
8589
// DisableDebug disables the debug outputs that might be too much for some people
8690
func (r *Router) DisableDebug() {
8791
r.DebugLog.SetOutput(ioutil.Discard)

0 commit comments

Comments
 (0)