Commits

Sean Russell committed 9cb7d11

Fixes bug in # return vals (template)

  • Participants
  • Parent commits 8f3cd0c

Comments (0)

Files changed (1)

 	return eh
 }
 
-func (eh *ErrorHandler) RenderContent() {
+func (eh *ErrorHandler) RenderContent() error {
 	fname := "views/errors/" + eh.typ + ".tpl"
 	t, e := loadTemplate(fname)
 	if e != nil {
 	} else {
 		executeTemplate(fname, t, eh.Response, eh)
 	}
+	return nil
 }
 
 func titleCase(s string) string {
 	e := a.route(response, request)
 
 	if e != nil {
-		log.Printf("error = %v", e)
 		p := "htdocs/"+request.URL.Path
 		path := strings.Split(p, "/")
 		_, e := os.Stat(filepath.Join(path...))