Skip to content

Improve error message in case of invalid path #1584

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Apr 17, 2025

Previously, if blog authors didn't set the path key in the front matter, the error message from Zola was:

Filter nth received an incorrect type for arg n: got -2 but expected a usize

This is misleading, as it doesn't point out the cause of the problem. The new error message makes authors aware of the required path format.

Previously, if blog authors didn't set the path key in the front matter,
the error message from Zola was:

Filter `nth` received an incorrect type for arg `n`: got `-2` but expected a usize

This is misleading, as it doesn't point out the cause of the problem.
The new error message makes authors aware of the required path format.
@senekor
Copy link
Contributor Author

senekor commented Apr 17, 2025

this was reported here

@senekor senekor requested a review from Manishearth April 17, 2025 08:38
@Manishearth Manishearth merged commit 3290fc7 into master Apr 17, 2025
5 checks passed
@Manishearth Manishearth deleted the senekor/zrzlnywulxms branch April 17, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants