Skip to content

Error Code Return #1386

Description

@dhruveshg
  • No error code is returned and it crashes if the "key" is not found. I am new to this library, am I missing something? Could it return error code, or the only way to avoid crashing is to use exception handling?

json jProfile;
std::ifstream f(profileFile);
f >> jProfile;
jProfile.at("CONFIG").at(std::to_string(1)).get_to(configFileName);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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