Skip to content

enrich the exception msg when input wrong format #2116

Closed
@wangjunZeroZeroSeven

Description

We met an exception in spdlog:

[*** LOG ERROR #0001 ***] [2021-09-26 13:59:46] [Speck2bMiniTestboard] {cannot switch from manual to automatic argument indexing}

it is caused by the wrong msg format:

logger.debug("WriteRegisterValue addr: {0:x}, bias: {}", arg.address, arg.data);

which should be :

logger.debug("WriteRegisterValue addr: {:x}, bias: {}", arg.address, arg.data);

But the exception msg is too simple , it doesn't notice us about the origin msg. so it's hard to locate , can you improve the exception msg ?

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