Skip to content

Commit

Permalink
Added fatal error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Jul 12, 2022
1 parent 835ab76 commit 0dc1046
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/uncors/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ func main() {
)

http.HandleFunc("/", infrastrucure.NormalizeHttpReqDecorator(rp.HandleRequest))
http.ListenAndServe(":3000", nil)
err := http.ListenAndServe(":3000", nil)
if err != nil {
pterm.Fatal.Println(err)
}
}

0 comments on commit 0dc1046

Please sign in to comment.