show error message on database connect

This commit is contained in:
Martin/Geno 2019-06-29 03:08:01 +02:00
parent 2620713e1a
commit d372718264
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func main() {
db, err := gorm.Open(config.DatabaseType, config.DatabaseConnection)
if err != nil {
log.Panic("failed to connect database")
log.Panicf("failed to connect database: %s", err)
}
db.AutoMigrate(&runtime.Node{}, &websocket.Session{})