Skip to content

Integrate the logging code with ErrorReport #263

@SebastianMestre

Description

@SebastianMestre

It would be pretty cool to be able to write something like

ErrorReport err = match_identifiers(...);
if (!err.ok()) {
   Log::fatal() << err;
}

or like

auto err = make_located_error("undefined variable", location, ErrorLevel::Fatal);
err.print();

and have it print [ Fatal Error ] At xx:xx -- undefined variable, followed by termination of the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area - helpersAbout one of the helper libraries in Jasper's implementationgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions