Skip to content

Commit

Permalink
Check error status of ListenAndServe
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Oct 11, 2015
1 parent bec124a commit fe07088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func main() {
http.HandleFunc("/v1/count", handleCount)

fmt.Println("Will start listening on port 8000")
http.ListenAndServe(":8000", nil)
err = http.ListenAndServe(":8000", nil)
if err != nil {
log.Fatal("ListenAndServe ", err)
}
Expand Down

0 comments on commit fe07088

Please sign in to comment.