1
0

A little more informative log. Error removed from handlers because it doesn't return them. :)

This commit is contained in:
Alexander Andreev 2022-10-21 02:59:34 +04:00
parent c6e719b5c1
commit 9243ad4bbd
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -41,14 +41,11 @@ func main() {
db, err := sqlite.New(config.DBPath) db, err := sqlite.New(config.DBPath)
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln("failed to init DB:", err)
} }
defer db.Close() defer db.Close()
hand, err := handlers.New(config.Owner.Name, config.Owner.Password, config.AnonymousPosterName, config.PageSize, db, config.CaptchaAddr) hand := handlers.New(config.Owner.Name, config.Owner.Password, config.AnonymousPosterName, config.PageSize, db, config.CaptchaAddr)
if err != nil {
log.Fatalln(err)
}
srv := server.NewHttpServer() srv := server.NewHttpServer()