Skip to content
Snippets Groups Projects
Commit 5f986728 authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Adding try/catch for top baseline time to be in config file

parent 83573af9
No related branches found
No related tags found
No related merge requests found
......@@ -519,9 +519,15 @@ void RuntimeController::readConfigurationFile(const char *str) {
std::string first_line;
std::getline(qin, first_line);
DEBUG("first_line: %s\n", first_line.c_str());
baseline_time = std::stod(first_line);
DEBUG("Baseline time: %lf\n\n", baseline_time);
try{
baseline_time = std::stod(first_line);
DEBUG("Baseline time: %lf\n\n", baseline_time);
}
catch(...){
ERROR("Please Add/Fix Baseline Time at Top of Config File.. ");
}
for (std::string line; std::getline(qin, line);) {
DEBUG("line: %s\n", line.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment