csx 3 years ago
parent
commit
1cd1ad5de1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      service/ms_db.go

+ 2 - 0
service/ms_db.go View File

41
 	db, err := gorm.Open("mssql", connectionString)
41
 	db, err := gorm.Open("mssql", connectionString)
42
 	if err != nil {
42
 	if err != nil {
43
 		fmt.Println("failed to connect database")
43
 		fmt.Println("failed to connect database")
44
+		fmt.Println(err)
45
+
44
 	}
46
 	}
45
 	db.LogMode(true)
47
 	db.LogMode(true)
46
 	db.CommonDB()
48
 	db.CommonDB()