From 9243ad4bbdbfeb3cdd54326ff55b81cd842edde4 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 21 Oct 2022 02:59:34 +0400 Subject: [PATCH] A little more informative log. Error removed from handlers because it doesn't return them. :) --- cmd/justguestbookd/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/justguestbookd/main.go b/cmd/justguestbookd/main.go index 88bb17e..59ed641 100644 --- a/cmd/justguestbookd/main.go +++ b/cmd/justguestbookd/main.go @@ -41,14 +41,11 @@ func main() { db, err := sqlite.New(config.DBPath) if err != nil { - log.Fatalln(err) + log.Fatalln("failed to init DB:", err) } defer db.Close() - hand, err := handlers.New(config.Owner.Name, config.Owner.Password, config.AnonymousPosterName, config.PageSize, db, config.CaptchaAddr) - if err != nil { - log.Fatalln(err) - } + hand := handlers.New(config.Owner.Name, config.Owner.Password, config.AnonymousPosterName, config.PageSize, db, config.CaptchaAddr) srv := server.NewHttpServer()