Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message when Eleventy tries to paginate a falsy value #756

Closed
zachleat opened this issue Nov 1, 2019 · 2 comments
Closed
Labels
enhancement error-messaging feature: 📦 pagination Related to Eleventy’s pagination feature

Comments

@zachleat
Copy link
Member

zachleat commented Nov 1, 2019

---
pagination:
  data: testdata
  size: 2
testdata:
---

outputs this:
image

@zachleat zachleat changed the title Better error message when Eleventy tries to pagination an empty set Better error message when Eleventy tries to paginate an empty set Nov 1, 2019
@zachleat zachleat added the feature: 📦 pagination Related to Eleventy’s pagination feature label May 12, 2022
@zachleat zachleat changed the title Better error message when Eleventy tries to paginate an empty set Better error message when Eleventy tries to paginate a falsy value May 12, 2022
@zachleat
Copy link
Member Author

Should show the origin file name, too.

@zachleat
Copy link
Member Author

2.0.0-canary.11

@zachleat zachleat added this to the Eleventy 2.0.0 milestone May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement error-messaging feature: 📦 pagination Related to Eleventy’s pagination feature
Projects
None yet
Development

No branches or pull requests

1 participant