Skip to content

lychee.toml file ignored when it is invalid #1704

@thomas-zahner

Description

@thomas-zahner

When the config file lychee.toml cannot be read the file is not treated as config file, instead it is simply ignored.
This really confused me because I made a syntax error in the config file but I didn't specify it explicitly with --config lychee.toml.

Expected behaviour

lychee . should exit with an error if the lychee.toml exists in the current directory but it is invalid. (as happens with lychee --config lychee.toml .) lychee shouldn't silently ignore the file when unable to parse it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions