Split operations code and add comments

This commit is contained in:
Clayton Coleman
2014-07-29 17:36:41 -04:00
parent 9069696514
commit fe7f611d88
2 changed files with 59 additions and 42 deletions

View File

@@ -21,6 +21,7 @@ import (
"net/http"
)
// internalError renders a generic error to the response
func internalError(err error, w http.ResponseWriter) {
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "Internal Error: %#v", err)