diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.go b/src/main.go index 4af5cc4..c13d00c 100644 --- a/src/main.go +++ b/src/main.go @@ -26,7 +26,12 @@ func main() { httpServer := setupHTTPServer() // Set up the DB connection - db = setupDatabase() + database, err := setupDatabase() + if err != nil { + log.Println(err) + return + } + db = database // React to system signals signalChannel := make(chan os.Signal, 1) |