Skip to content

Confusing errors for TOML front-matter issues #1517

@ehuss

Description

@ehuss

I'm running into some problems with the TOML front-matter checks. They look roughly like this:

Error:
   0: markdown file must start with the line `+++`

Location:
   front_matter/src/lib.rs:24

The problem is that it doesn't tell me which file is having the problem, which makes me need to hunt down where it was having an issue (it was not with the file I was currently working on). The same goes for other kinds of errors like:

Error:
   0: TOML parse error at line 1, column 1
   0:   |
   0: 1 | layout = "post"
   0:   | ^^^^^^^^^^^^^^^
   0: missing field `date`
   0:

Location:
   front_matter/src/lib.rs:31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions