Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour: add log.Fatal to HTTP handlers exercise
Browse files Browse the repository at this point in the history
This helps people diagnose the ListenAndServe error.

TBR=campoy
R=golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/115170043
  • Loading branch information
adg committed Jul 22, 2014
1 parent 3b04741 commit ef69d2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/prog/tour/exercise-http-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package main

import (
"log"
"net/http"
)

func main() {
// your http.Handle calls here
http.ListenAndServe("localhost:4000", nil)
log.Fatal(http.ListenAndServe("localhost:4000", nil))
}

0 comments on commit ef69d2e

Please sign in to comment.