From 8f623512c25067317ce92929e73ba79fbb33c130 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/seller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/seller.go b/cmd/seller.go index d3e39d5..d3316f5 100644 --- a/cmd/seller.go +++ b/cmd/seller.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)