Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Sep 3, 2024
1 parent acc6a1b commit a44bbca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ namespace CDASimAdapter{
message["sensors"] = sensors_json_v;
}
catch(const std::invalid_argument &e) {
PLOG(tmx::utils::logWARNING) << e.what();
PLOG(tmx::utils::logWARNING) << "Error occured reading sensor configuration file: " << e.what()
<< std::endl << "Not sending any Sensor Registration information with CDASim Infrastructure Registration!";
}
}
else {
Expand Down Expand Up @@ -260,9 +261,7 @@ namespace CDASimAdapter{
JSONCPP_STRING err;
if(!reader->parse(json_str.c_str(), json_str.c_str() + json_str.length(), &json_v, &err))
{
PLOG(logERROR) << "Error parsing sensors from string: " << json_str << std::endl;
throw std::invalid_argument("Error parsing JSON from string: " + json_str);

}
return json_v;
}
Expand Down

0 comments on commit a44bbca

Please sign in to comment.