Skip to content

Recommendation: Avoid Using panic! for Error Handling in file.rs #215

Open
@neilnaveen

Description

@neilnaveen

When handling errors in assert_is_allowed_filename in src/interface/file.rs, panic! might not be suitable. Instead, returning Result<(), String> would allow the caller to handle errors, giving more control over error management.

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