Skip to content

Library error messages about invalid data should explain how the data is invalid #125

@mr-smidge

Description

@mr-smidge

Some error messages emitted from the library, when invalid data is encountered, explain vaguely that something is wrong, but could be clearer in explaining how that data is invalid.

For example:

    if (raw_data.size() < 27)
    {
        throw std::invalid_argument{
            "Overview waveform data has less than the minimum length of "
            "27 bytes"};
    }

The above message would be more helpful if it explained how many bytes the raw data actually was.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions