Improved error logging
This commit is contained in:
@ -16,7 +16,7 @@ func RedirectByMapping(mappingName string) func(*aero.Context) string {
|
||||
anime := finder.GetAnime(id)
|
||||
|
||||
if anime == nil {
|
||||
return ctx.Error(http.StatusNotFound, "Anime not found", nil)
|
||||
return ctx.Error(http.StatusNotFound, "Anime not found")
|
||||
}
|
||||
|
||||
return utils.SmartRedirect(ctx, "/anime/"+anime.ID)
|
||||
|
Reference in New Issue
Block a user