From f5e1669a6188cf4c4c9b098e1b4c99aebd947d03 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Mon, 11 Dec 2023 03:49:58 +0000 Subject: [PATCH] Handle error on app.Listen (closes #157) (#158) Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/158 Reviewed-by: orangix Co-authored-by: video-prize-ranch Co-committed-by: video-prize-ranch --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 5c81495..e3e36a7 100644 --- a/main.go +++ b/main.go @@ -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) + } }