From 628562e53e8c6426024cbb979115ee9070560107 Mon Sep 17 00:00:00 2001 From: guzeng Date: Wed, 20 Sep 2023 10:02:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.go b/db.go index 3622fff..f636724 100644 --- a/db.go +++ b/db.go @@ -406,6 +406,7 @@ func GetRow(dbName, table_name, alias string, titles string, join [][]string, wh } if err != nil { + log.Println("DB error:", err) rows.Close() return count, info, err } @@ -436,6 +437,7 @@ func GetRow(dbName, table_name, alias string, titles string, join [][]string, wh } rows.Close() if rowerr != nil { + log.Println("DB row error:", rowerr) return count, info, rowerr } return count, info, nil