Improved error logging

This commit is contained in:
2018-07-07 12:42:00 +09:00
parent bf544836fa
commit e46c9b1586
41 changed files with 69 additions and 65 deletions

View File

@ -16,7 +16,7 @@ func Get(ctx *aero.Context) string {
user := utils.GetUser(ctx)
if user == nil || (user.Role != "editor" && user.Role != "admin") {
return ctx.Error(http.StatusUnauthorized, "Not logged in or not auhorized to edit this thread", nil)
return ctx.Error(http.StatusUnauthorized, "Not logged in or not auhorized to edit this thread")
}
thread, err := arn.GetThread(id)