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

Adjust error handling in ToMath vs try #13239

Closed
bep opened this issue Jan 9, 2025 · 2 comments · Fixed by #13240
Closed

Adjust error handling in ToMath vs try #13239

bep opened this issue Jan 9, 2025 · 2 comments · Fixed by #13240
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Jan 9, 2025

https://gohugo.io/functions/transform/tomath/#error-handling

@bep bep self-assigned this Jan 9, 2025
@bep bep added this to the v0.141.0 milestone Jan 9, 2025
bep added a commit to bep/hugo that referenced this issue Jan 9, 2025
bep added a commit to bep/hugo that referenced this issue Jan 9, 2025
bep added a commit to bep/hugo that referenced this issue Jan 9, 2025
@bep bep closed this as completed in dde9d9d Jan 9, 2025
@akbyrd
Copy link

akbyrd commented Jan 28, 2025

Heads up that the helpful error message doesn't show up in all cases. I have a passthrough renderhook with {{- $result = (transform.ToMath $inner $opts).Value }} and it doesn't show the help. It took me a while to figure out why it was broken.

I accidentally used a newer version of Hugo when setting up a new machine. My fault for not being cautious.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants