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

REF_NOT_FOUND does not show where the ref is located #5371

Closed
pjbakker opened this issue Oct 29, 2018 · 5 comments
Closed

REF_NOT_FOUND does not show where the ref is located #5371

pjbakker opened this issue Oct 29, 2018 · 5 comments

Comments

@pjbakker
Copy link

Situation:

The error in case of a non-existent ref is:

ERROR 2018/10/29 11:43:36 [en] REF_NOT_FOUND: Ref "bank": page not found

Issue:
It does not show me the context or in which file this error occurred. Thus requiring a grep in order to retrieve the error location.

Solution:
Change error message to include filename of page containing the issue, like:

ERROR 2018/10/29 11:43:36 [en] REF_NOT_FOUND: Ref "bank": page not found in "content/financial.md"
@bep
Copy link
Member

bep commented Oct 29, 2018

What Hugo version have you tested this with?

@pjbakker
Copy link
Author

Hugo Static Site Generator v0.49.2/extended darwin/amd64 BuildDate: unknown

@bep bep added this to the v0.51 milestone Oct 29, 2018
@bep
Copy link
Member

bep commented Oct 29, 2018

Yea, that error isn't all that great ...

@pjbakker
Copy link
Author

We agree there ;)

bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
To allow for better error logging in shortcodes. Note that this may be expensive to calculate, so this is primarily for error situations.

See gohugoio#5371
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
bep added a commit to bep/hugo that referenced this issue Nov 1, 2018
@bep bep closed this as completed in 6180c85 Nov 1, 2018
bep added a commit that referenced this issue Nov 1, 2018
To allow for better error logging in shortcodes. Note that this may be expensive to calculate, so this is primarily for error situations.

See #5371
bep added a commit that referenced this issue Nov 1, 2018
@github-actions
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 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants