Fix for logging of asteroids data file error (downgrade to 'info')

This commit is contained in:
GPayne
2020-10-14 20:19:13 -06:00
parent 1eb8c9dbfd
commit df22eeb657

View File

@@ -225,16 +225,16 @@ void RenderableSmallBody::readDataFile(const std::string& filename) {
}
catch (std::invalid_argument&) {
const char* errMsg = "Unable to convert field {} to double value "\
"(invalid_argument exception) at line {}/{} of {}";
LERROR(fmt::format(
"(invalid_argument exception). Ignoring line {}/{} of {}.";
LINFO(fmt::format(
errMsg,
fieldCount, csvLine + 1, numberOfLines, filename
));
}
catch (std::out_of_range&) {
const char* errMsg = "Unable to convert field {} to double value "\
"(out_of_range exception) at line {}/{} of {}";
LERROR(fmt::format(
"(out_of_range exception). Ignoring line {}/{} of {}.";
LINFO(fmt::format(
errMsg,
fieldCount, csvLine + 1, numberOfLines, filename
));