Simplify helpers

This commit is contained in:
Clayton Coleman
2014-07-29 18:10:29 -04:00
parent c7d311896e
commit a2c86e4c97
2 changed files with 24 additions and 24 deletions

View File

@@ -21,6 +21,11 @@ import (
"net/http"
)
func internalError(err error, w http.ResponseWriter) {
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "Internal Error: %#v", err)
}
// notFound renders a simple not found error
func notFound(w http.ResponseWriter, req *http.Request) {
w.WriteHeader(http.StatusNotFound)