A little more informative log. Error removed from handlers because it doesn't return them. :)
This commit is contained in:
parent
c6e719b5c1
commit
9243ad4bbd
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user