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

Add relative path determination and update error output #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TimidRobot
Copy link

@TimidRobot TimidRobot commented Apr 12, 2021

Description

Output

The example below includes only a single file, for brevity. If the entire project was scanned, there would be many more errors, but the old output would not indicate which file (all files are named contents.lr).

New Output

Command:

linkcheckMarkdown -ext .lr content/archives/old-tech-blog/entries/issue-tracking-at-codecreativecommonsorg/

Output:

ERROR: 'content/archives/old-tech-blog/entries/issue-tracking-at-codecreativecommonsorg/contents.lr' 'http://code.creativecommons.org/issues' 404
ERROR: 'content/archives/old-tech-blog/entries/issue-tracking-at-codecreativecommonsorg/contents.lr' 'http://learn.creativecommons.org/projects/oesearch' 'Cannot connect to host learn.creativecommons.org:80 ssl:default [nodename nor servname provided, or not known]'
ERROR: 'content/archives/old-tech-blog/entries/issue-tracking-at-codecreativecommonsorg/contents.lr' 'http://code.creativecommons.org/issues/issue7' 404
4.58 seconds to check links

Old Output

Command:

linkcheckMarkdown -ext .lr content/archives/old-tech-blog/entries/issue-tracking-at-codecreativecommonsorg/

Output:


 ('contents.lr', 'http://code.creativecommons.org/issues', 404)

 ('contents.lr', 'http://learn.creativecommons.org/projects/oesearch', ClientConnectorError(ConnectionKey(host='learn.creativecommons.org', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=-5849311230535720466), gaierror(8, 'nodename nor servname provided, or not known')))

 ('contents.lr', 'http://code.creativecommons.org/issues/issue7', 404)
4.65 seconds to check links

@TimidRobot TimidRobot changed the title Add relative path determination and updat error output Add relative path determination and update error output May 19, 2021
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.

Error output has only filename, which may be ambiguous
1 participant