Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Commit

Permalink
remove test function for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Apr 13, 2015
1 parent 1fc96f3 commit f71287b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@ func domainkeyDeleteHandler(w http.ResponseWriter, req *http.Request) {
http.Redirect(w, req, "/#auth", http.StatusFound)
}

// This is just a temporary thing to try out deferpanic.com
// and this can be removed once I know it works.
func errorTestHandler(w http.ResponseWriter, req *http.Request) {
panic("Something terrible happened")
}

var (
redisPool *pool.Pool
procs int
Expand Down Expand Up @@ -361,7 +355,6 @@ func main() {
mux.HandleFunc("/github_oauth_cb", deferstats.HTTPHandler(handleGitHubCallback)).Methods("GET")
mux.HandleFunc("/domainkeys/new", deferstats.HTTPHandler(domainkeyNewHandler)).Methods("POST")
mux.HandleFunc("/domainkeys/delete", deferstats.HTTPHandler(domainkeyDeleteHandler)).Methods("POST")
mux.HandleFunc("/errortest", deferstats.HTTPHandler(errorTestHandler)).Methods("GET")

n := negroni.Classic()

Expand Down

0 comments on commit f71287b

Please sign in to comment.