mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-06-27 23:48:23 +00:00
Handle error on app.Listen (closes #157)
This commit is contained in:
parent
dd78541a46
commit
509a0e6e5c
5
main.go
5
main.go
@ -135,5 +135,8 @@ func main() {
|
|||||||
app.Get("/:postID", pages.HandlePost)
|
app.Get("/:postID", pages.HandlePost)
|
||||||
app.Get("/:postID/embed", pages.HandleEmbed)
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user