Skip to content

Provide more helpful error messages (e.g. line number) for parse failures #260

@stewartadam

Description

@stewartadam

Some of the error messages don't provide any line numbers of the originating struct name, making them annoying to pin down:

Parsing error: "failed to parse a rust type: Tuples are not allowed in typeshare types" in file "../../git/project/src/outbound.rs"

Parsing error: "failed to parse a rust type: ["u64"]" in file "../../git/project/src/command_types.rs"

Would be nice to provide more helpful error messages that include the struct/enum name, like some of them do:

Parsing error: "serde tag attribute needs to be specified for algebraic enum Attribute. e.g. #[serde(tag = "type", content = "content")]" in file "../../git/project/src/attributes.rs"

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