csx 3 anni fa
parent
commit
744fa8a766
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      service/ms_db.go

+ 1 - 1
service/ms_db.go Vedi File

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