From d3727182647f8f217aebf57c166950e44327de3c Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Sat, 29 Jun 2019 03:08:01 +0200 Subject: [PATCH] show error message on database connect --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c08d043..c52deb2 100644 --- a/main.go +++ b/main.go @@ -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{})