Skip to content

Message "[error] bad format: unknown value appeared ..." is displayed twice #312

Description

@agoodlife

when parsing
MyKey = [wrong]

with toml::parse

e.what() contains the error twice:

[error] bad format: unknown value appeared
 --> /mathworks/devel/sandbox/abonnevi/workspace/bash/2026_05_21_toml/invalid.toml.pscfg
   |
 1 | MyKey = [wrong]
   |          ^-- here
[error] bad format: unknown value appeared
 --> /mathworks/devel/sandbox/abonnevi/workspace/bash/2026_05_21_toml/invalid.toml.pscfg
   |
 1 | MyKey = [wrong]
   |          ^-- here

NOTE: this has something to do with this specific error because when parsing
MyKey
The error only appears one.

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