diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -24,6 +24,10 @@ func main() { | |||
24 | if err != nil { | 24 | if err != nil { |
25 | log.Fatal(err) | 25 | log.Fatal(err) |
26 | } | 26 | } |
27 | if err := db.Ping(); err != nil { | ||
28 | log.Fatal(err) | ||
29 | } | ||
30 | |||
27 | log.Println("database connection established") | 31 | log.Println("database connection established") |
28 | 32 | ||
29 | renderer = frontend.New("views") | 33 | renderer = frontend.New("views") |