csx 3 years ago
parent
commit
744fa8a766
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/ms_db.go

+ 1 - 1
service/ms_db.go View File

40
 		host, user, password, port, dbname)
40
 		host, user, password, port, dbname)
41
 	db, err := gorm.Open("mssql", connectionString)
41
 	db, err := gorm.Open("mssql", connectionString)
42
 	if err != nil {
42
 	if err != nil {
43
-		panic("failed to connect database")
43
+		fmt.Println("failed to connect database")
44
 	}
44
 	}
45
 	db.LogMode(true)
45
 	db.LogMode(true)
46
 	db.CommonDB()
46
 	db.CommonDB()