Handle error on app.Listen (closes #157)

This commit is contained in:
video-prize-ranch 2023-12-06 19:58:41 -05:00
parent dd78541a46
commit 509a0e6e5c
No known key found for this signature in database

View File

@ -135,5 +135,8 @@ func main() {
app.Get("/:postID", pages.HandlePost)
app.Get("/:postID/embed", pages.HandleEmbed)
app.Listen(utils.Config.Addr + ":" + utils.Config.Port)
err := app.Listen(utils.Config.Addr + ":" + utils.Config.Port)
if err != nil {
fmt.Println(err)
}
}