Skip to content

Unhelpful error message when struct name doesn't match #301

@cswinter

Description

@cswinter

When deserializing a string that defines a RON struct with an optional class name that does not match the name of the Rust struct, ron::from_str returns an error that displays as Error: 1:1: Expected struct. It took me quite a long time to figure out what the issue was. It would be more helpful if the error message was something like Error: 1:1: Expected struct "Name" but got struct "ActualName".

Metadata

Metadata

Assignees

No one assigned

    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