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

Provide a better error message for broken links in mdbook-spec #1716

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jan 16, 2025

This improves the error message when there is a broken link. I was relying on rustdoc::broken_intra_doc_links to generate a good message, but that doesn't seem to fire if there is a space in the link text. Thus, if you have something like [foo bar] which doesn't have a definition, you would get a confusing error message that just spits out a meaningless byte range.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jan 16, 2025
@ehuss ehuss force-pushed the spec-better-error-bad-link branch from 3f35dd0 to dffcb0e Compare January 16, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: The marked PR is awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants