Improved error logging
This commit is contained in:
@ -38,7 +38,7 @@ func AnimeList(ctx *aero.Context, user *arn.User, status string) string {
|
||||
animeList := viewUser.AnimeList()
|
||||
|
||||
if animeList == nil {
|
||||
return ctx.Error(http.StatusNotFound, "Anime list not found", nil)
|
||||
return ctx.Error(http.StatusNotFound, "Anime list not found")
|
||||
}
|
||||
|
||||
statusList := animeList.FilterStatus(status)
|
||||
|
@ -12,7 +12,7 @@ func Redirect(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
if user == nil {
|
||||
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
|
||||
return ctx.Error(http.StatusUnauthorized, "Not logged in")
|
||||
}
|
||||
|
||||
return ctx.Redirect("/+" + user.Nick + ctx.URI())
|
||||
|
Reference in New Issue
Block a user