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

Bad link to / has confusing error message #138

Closed
not-my-profile opened this issue Nov 30, 2021 · 1 comment
Closed

Bad link to / has confusing error message #138

not-my-profile opened this issue Nov 30, 2021 · 1 comment

Comments

@not-my-profile
Copy link

not-my-profile commented Nov 30, 2021

hyperlink apparently strips leading slashes which however results in a confusing error message when an index.html file in the base-path is missing:

% mkdir /tmp/test
% echo '<a href=/>test</a>' > /tmp/test/foo.html                   
% hyperlink /tmp/test                           
Reading files
Checking 1 links from 1 files (1 documents)
/tmp/test/foo.html
  error: bad link 

Found 1 bad links

Notice that it doesn't say what the bad link is.

@untitaker
Copy link
Owner

tempted to fix this by prepending / when formatting the error message

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

No branches or pull requests

2 participants