From ed3db69b46cbf80d3a189e11e0409287f379e9d9 Mon Sep 17 00:00:00 2001 From: lijun Date: Tue, 14 Jan 2025 15:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=AF=BB?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/conf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proto/conf.go b/proto/conf.go index b2b41cb..e20fcd6 100644 --- a/proto/conf.go +++ b/proto/conf.go @@ -68,7 +68,8 @@ func ReadConfig(path string) error { decoder := json.NewDecoder(file) err = decoder.Decode(&Config) if err != nil { - fmt.Println("Error decoding config") + fmt.Println("Error decoding config:", err) + return err } else { if Config.SERVER_PORT == "" { Config.SERVER_PORT = "5002" // 默认端口