diff --git a/cmd/provider.go b/cmd/provider.go index 1d7fe6a..03603b4 100644 --- a/cmd/provider.go +++ b/cmd/provider.go @@ -23,7 +23,7 @@ func main() { glog.Fatalf("init database failed: %v", err) } // 初始化服务 - r := fiber.New() + r := fiber.New(fiber.Config{ErrorHandler: web.ErrHandle}) r.Use(cors.New(), recover.New()) stg := storage.NewStorage(db)