Skip to content

Make ProjectRead not return Option for info and meta #324

@Jonas-Puksta-Sensmetry

Description

@Jonas-Puksta-Sensmetry

Currently ProjectRead::get_project returns

Result<(Option<InterchangeProjectInfoRaw>, Option<InterchangeProjectMetadataRaw>), Self::Error>

So everyone who calls this needs to report that ".project.json is missing" or ".meta.json is missing", and add the path/url to the error, which is often not done.

It would be much more convenient for everyone if each ProjectRead implementation would have an extra error case for missing info/meta. It would also be easier to include the relevant context (such as path/url) in the error there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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