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!
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!