Skip to content

Exception when start if CROW_ROUTE url not starts with / #559

@xandross389

Description

@xandross389

If character "/" is missed at the begining of URL param in CROW_ROUTE declaration app not starts and throw exception with ambiguous message:

example:

CROW_ROUTE(app, "api/v1/service/status")

causes exception:

terminate called after throwing an instance of 'std::runtime_error'
 what():   Internal error: Trie header should be simple!

I suggest check specific condition and that cause exception and show correspondent message to the user

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureCode based project improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions