mirror of https://github.com/gofiber/fiber.git
⚡ v2
parent
2951c6ac0d
commit
b388617532
2
app.go
2
app.go
|
@ -233,7 +233,7 @@ const (
|
|||
DefaultCompressedFileSuffix = ".fiber.gz"
|
||||
)
|
||||
|
||||
// Default ErrorHandler
|
||||
// Default ErrorHandler that process return errors from handlers
|
||||
var DefaultErrorHandler = func(c *Ctx, err error) error {
|
||||
code := StatusInternalServerError
|
||||
if e, ok := err.(*Error); ok {
|
||||
|
|
Loading…
Reference in New Issue