stephannv/nindika

Error message when try to visit non-existing game list page

stephannv opened this issue · 0 comments

Steps to reproduce

  1. Visit any game list page (eg.: on sale, coming soon, pre order, all games, etc).
  2. Append ?page=200 to page url (this 200 can be replaced by any non-existing page number). eg.: /games/new_releases?page=125.

Current behavior

500 error page (We're sorry, but something went wrong. If you are the application owner check the logs for more information.)
Error example captured on Sentry:

Pagy::OverflowError
Expected :page in 1..15; got 125

Desired behavior

Redirect to 404 page.