show error message on database connect
This commit is contained in:
parent
2620713e1a
commit
d372718264
2
main.go
2
main.go
|
@ -46,7 +46,7 @@ func main() {
|
||||||
|
|
||||||
db, err := gorm.Open(config.DatabaseType, config.DatabaseConnection)
|
db, err := gorm.Open(config.DatabaseType, config.DatabaseConnection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic("failed to connect database")
|
log.Panicf("failed to connect database: %s", err)
|
||||||
}
|
}
|
||||||
db.AutoMigrate(&runtime.Node{}, &websocket.Session{})
|
db.AutoMigrate(&runtime.Node{}, &websocket.Session{})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue