From f71287b539cd540586ff80f78c8278e2f908e7e7 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 13 Apr 2015 08:52:51 -0700 Subject: [PATCH] remove test function for errors --- server.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server.go b/server.go index 8349671..f95fb87 100644 --- a/server.go +++ b/server.go @@ -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 @@ -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()