Skip to content
Permalink
Browse files

makes sure a nil error handler isn't set (#1579)

  • Loading branch information...
markbates committed Feb 8, 2019
1 parent 6c60ac5 commit 042aa361402ca3d9bcbac890bd07b68e5d730f4e
Showing with 3 additions and 1 deletion.
  1. +3 −1 errors.go
@@ -60,7 +60,9 @@ func (e ErrorHandlers) Get(status int) ErrorHandler {
// the original default error handler.
// This is a *catch-all* handler.
func (e ErrorHandlers) Default(eh ErrorHandler) {
e[0] = eh
if eh != nil {
e[0] = eh
}
}

// PanicHandler recovers from panics gracefully and calls

0 comments on commit 042aa36

Please sign in to comment.
You can’t perform that action at this time.