Skip to content

Do not assert when source file is missing #334

@danmar

Description

@danmar

Executing simplecpp with a missing file cause assertion error. We should report some file not found error instead:

daniel@laptop:~/simplecpp$ ./simplecpp notexist.cpp 
simplecpp: simplecpp.cpp:388: FileStream::FileStream(const string&): Assertion `file != nullptr' failed. 
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions