WSL/SLF GitLab Repository

Commit a0a74584 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

SNIO nows throws an exception when no metadata can be found.

The Wextra warning option is now disabled for Windows systems, so Visual C++ won't complain about it.
parent 7b36a51a
This diff is collapsed.
......@@ -150,6 +150,7 @@ void SNIO::readMetaData(unsigned int& nrOfStations)
string line="";
stringstream snum;
snum << ii+1;
bool station_found=false;
cfg.getValue("STATION" + snum.str(), "Input", stationname);
......@@ -183,9 +184,15 @@ void SNIO::readMetaData(unsigned int& nrOfStations)
StationData sd;
parseMetaDataLine(tmpvec, sd);
vecAllStations.push_back(sd);
station_found=true;
}
}
}
if(station_found==false) {
stringstream ss;
ss << "No metadata found for station " << stationname << " in " << meta_with_path.str();
throw NoAvailableDataException(ss.str(), AT);
}
} catch(std::exception& e){
cleanup();
throw;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment