You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a json file uses old or incorrect syntax, the program crashes ungracefully. The culprit is lines in read_json functions like this: m_thickness = j["thickness"];
One solution is to use an alternative assignment line that accepts a default value: m_theta = j.value("rotation", 0.0);
But it would be even better to also inform the user that a property was not found and a default value was assigned.
The text was updated successfully, but these errors were encountered:
When a json file uses old or incorrect syntax, the program crashes ungracefully. The culprit is lines in
read_json
functions like this:m_thickness = j["thickness"];
One solution is to use an alternative assignment line that accepts a default value:
m_theta = j.value("rotation", 0.0);
But it would be even better to also inform the user that a property was not found and a default value was assigned.
The text was updated successfully, but these errors were encountered: