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

fix: Bring back error output for links #1521

Closed
wants to merge 17 commits into from
Closed

fix: Bring back error output for links #1521

wants to merge 17 commits into from

Conversation

mre
Copy link
Member

@mre mre commented Oct 11, 2024

Superseded by #1553


With the last lychee release, we simplified the status output for links.

While this reduced the visual noise, it also accidentally caused the source of errors to not be printed anymore. This change brings back the additional error information as part of the final report output. Furthermore, it shows the error information in the progress output if verbose mode is activated.

Fixes #1487

@mre mre marked this pull request as draft October 11, 2024 23:33
@mre mre marked this pull request as ready for review October 13, 2024 21:54
With the last lychee release, we simplified the status output for links.  While
this reduced the visual noise, it also accidentially caused the source of
errors to not be printed anymore. This change brings back the additional error
information as part of the final report output. Furthermore, it shows the error
information in the progress output if verbose mode is activated.
lychee-bin/src/formatters/response/color.rs Outdated Show resolved Hide resolved
lychee-bin/src/formatters/response/color.rs Outdated Show resolved Hide resolved
lychee-bin/src/formatters/response/mod.rs Outdated Show resolved Hide resolved
lychee-bin/src/formatters/stats/compact.rs Outdated Show resolved Hide resolved
@mre
Copy link
Member Author

mre commented Oct 18, 2024

@dmathieu, do you have an idea why the test fails..

@dmathieu
Copy link
Contributor

do you have an idea why the test fails..

It's a bit weird. I'm not getting a failure locally. As if sometimes, a 200 is returned (giving the error we see), and sometimes a 204.

dmathieu and others added 12 commits October 27, 2024 02:24
This introduces an option `--cache-exclude-status`, which allows specifying a range of HTTP status codes which will be ignored from the cache.

Closes #1400.
Bumps the dependencies group with 3 updates: [clap](https://github.com/clap-rs/clap), [secrecy](https://github.com/iqlusioninc/crates) and [octocrab](https://github.com/XAMPPRocky/octocrab).


Updates `clap` from 4.5.19 to 4.5.20
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.5.19...clap_complete-v4.5.20)

Updates `secrecy` from 0.10.2 to 0.10.3
- [Commits](https://github.com/iqlusioninc/crates/commits)

Updates `octocrab` from 0.41.0 to 0.41.1
- [Release notes](https://github.com/XAMPPRocky/octocrab/releases)
- [Changelog](https://github.com/XAMPPRocky/octocrab/blob/main/CHANGELOG.md)
- [Commits](XAMPPRocky/octocrab@v0.41.0...v0.41.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: secrecy
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: octocrab
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add interesting projects who use lychee

* List Gradle as user in README.md
This commit introduces several improvements to the file checking process and URI handling:

- Extract file checking logic into separate `Checker` structs (`FileChecker`, `WebsiteChecker`, `MailChecker`)
- Improve handling of relative and absolute file paths
- Enhance URI parsing and creation from file paths
- Refactor `create_request` function for better clarity and error handling

These changes provide better support for resolving relative links, handling different base URLs, and working with file paths.

Fixes #1296 and #1480
@mre mre closed this Nov 6, 2024
@mre
Copy link
Member Author

mre commented Nov 6, 2024

See #1553 for a cleaned up version of this.

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.

Failed: Network error: error sending request for url
6 participants