errors linting

This commit is contained in:
Henrique Dias
2015-09-26 22:19:22 +01:00
parent 24871ee151
commit 58dcc9feb0
4 changed files with 29 additions and 35 deletions

View File

@@ -20,8 +20,7 @@ func GET(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error)
tpl, err := utils.GetTemplate(r, functions, "browse")
if err != nil {
w.Write([]byte(err.Error()))
return 500, err
return http.StatusInternalServerError, err
}
b := browse.Browse{