Skip to content

TOML error messages regressed #2146

@katrinafyi

Description

@katrinafyi

It seems that after d5d22bc, the error messages from TOML parsing no longer show the specific error message or the source location.

With this lychee.toml:

threads = 'a'

Old, good (e.g., 1a903e4):

 [ERROR] Error while loading config: Cannot load configuration file `lychee.toml`: Failed to parse configuration file

Caused by:
    TOML parse error at line 1, column 11
      |
    1 | threads = 'a'
      |           ^^^
    invalid type: string "a", expected usize
    
See: https://github.com/lycheeverse/lychee/blob/lychee-v0.23.0/lychee.example.toml

After d5d22bc:

 [ERROR] Error while loading config: Cannot load configuration file: lychee.toml
See: https://github.com/lycheeverse/lychee/blob/lychee-v0.23.0/lychee.example.toml

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions