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()