Skip to content

Please change assert into throw(maybe) in line 17946 #1841

@beegerous

Description

@beegerous
  • Describe the feature in as much detail as possible.
    when run a code like:
void test(const nlohmann::json& a) {
    cout << a["a"] << endl;
}
int main() {
    nlohmann::json a;
    test(a);
}

It just assert fail with no log or hint of the error key. When the project is quite complicated, it is hard to know where i got wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: enhancement/improvementstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updated

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions