Skip to content

Support for custom source location in errors #316

Description

@KKhanhH

I currently use parse_str to parse a toml file that is loaded into the buffer, coming from an actual file I have used my own file system operations to load. This works but formatted error strings shows --> internal string at line NUMBER in file <CPP FILE>. I would like for the error messages to allow overriding that string with any string, like my actual file's name, or at least allow the option to hide the source code debugging information.

[error]: ERROR MESSAGE HERE:
--> internal string at line NUMBER in file
|
23 | Variable = "InvalidValue"
| ^^^^^^^^^^^^^^^^^^^^^^^^-- but got invalid value
, exiting!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions