mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user