From 9f24da3d19f62d1c743f48005ea0487249fe65e5 Mon Sep 17 00:00:00 2001 From: timerzz Date: Sun, 1 Sep 2024 13:25:36 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0errhandle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)