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)