(rw http.ResponseWriter, req *http.Request)
| 39 | } |
| 40 | |
| 41 | func ErrorRouting(rw http.ResponseWriter, req *http.Request) { |
| 42 | http.Error(rw, "Handlers wired up wrong; this path shouldn't be hit", 500) |
| 43 | log.Printf("Internal routing error on %q", req.URL.Path) |
| 44 | } |
| 45 | |
| 46 | func BadRequestError(rw http.ResponseWriter, errorMessage string, args ...interface{}) { |
| 47 | rw.WriteHeader(http.StatusBadRequest) |
no test coverage detected