Skip to content

User hints are always printed to console #2196

@katrinafyi

Description

@katrinafyi

This means the hints can be missed if the user uses -o to write the output to a file. For instance, the hints won't be visible in the Github actions summary produced by lychee-action.

$ cargo run -- a.md --format markdown -o fdas 
     Running `target/debug/lychee a.md --format markdown -o fdas`

3/3 ━━━━━━━━━━━━━━━━━━━━ Finished extracting links                                                                                                                                          
Hint: Followed 1 redirect. You might want to consider replacing redirecting URLs with the resolved URLs. Use verbose mode (`-v`/`-vv`) to see redirection details.
$ cat fdas
# Summary

| Status         | Count |
|----------------|-------|
| 🔍 Total       | 3     |
| 🔗 Unique      | 3     |
| ✅ Successful  | 1     |
| ⏳ Timeouts    | 0     |
| 🔀 Redirected  | 1     |
| 👻 Excluded    | 0     |
| ❓ Unknown     | 0     |
| 🚫 Errors      | 2     |
| ⛔ Unsupported | 0     |

## Errors per input

### Errors in a.md

* [ERROR] <error:> (at 4:1) | Unresolved root-relative link '/a'
* [ERROR] <http://127.0.0.1:8000/a.html#:~:text=a-,b%20cd> (at 2:2) | Connection refused - server may be down or port blocked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions