Merge pull request #5858 from ioito/automated-cherry-pick-of-#5856-upstream-release-3.1

Automated cherry pick of #5856: fix: show sql connection error
This commit is contained in:
Zexi Li
2020-04-20 20:55:38 +08:00
committed by GitHub
+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 {