func ErrorHandler()

in internal/internal.go [23:29]


func ErrorHandler(w http.ResponseWriter, r *http.Request, code int, msg string, arg ...interface{}) {
	if len(arg) > 0 {
		msg = fmt.Sprintf(msg, arg...)
	}
	log.Printf("Error responding: %v", msg)
	http.Error(w, msg, code)
}