Skip to content

Potentially Misleading Error Message When Input File Is Missing (philosopher filter) #534

Open

Description

@hruskamiro

When running philosopher filter --pepxml non-existent.pepXML, if the specified input file does not exist, the tool outputs:

ERRO[12:42:19] Cannot read file. Error parsing the file

This message suggests a parsing error, implying that the file exists but is malformed. However, the actual issue is that the file is missing.

Expected Behavior:

The tool should check for the existence of the input file before attempting to parse it. If the file is missing, it should ideally output a clear and specific error message, such as:

ERROR: File not found: non-existent.pepXML

This would help users quickly identify the issue without misinterpreting the error as a parsing problem.

Steps to Reproduce:

Run philosopher filter --pepxml with a non-existent input file.

Observe the error message.

Environment:

Philosopher version: 5.1.0
OS: Ubuntu 22.04

Additional Context:

Improving this error message would enhance user experience by providing clearer guidance on the nature of the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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