fix: show sql connection error

This commit is contained in:
Qu Xuan
2020-04-20 16:47:36 +08:00
parent 76ee769eaf
commit 9cb2727bf1
+1 -1
View File
@@ -44,7 +44,7 @@ func InitDB(options *common_options.DBOptions) {
dialect, sqlStr, err := options.GetDBConnection()
if err != nil {
log.Fatalf("Invalid SqlConnection string: %s", options.SqlConnection)
log.Fatalf("Invalid SqlConnection string: %s error: %v", options.SqlConnection, err)
}
dbConn, err := sql.Open(dialect, sqlStr)
if err != nil {