Skip to content

Catching binary file not existing #64

@ruairimoran

Description

@ruairimoran

Problem

The program hangs if you attempt to parse a binary file that does not exist.

Solution

Line 611: if (!file.is_open()) { throw std::invalid_argument("the file you provided does not exist"); } needs repeated after line 657

Caution

Worth mentioning text or binary in these error messages, so you know what the code thinks it's looking for.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions