Skip to content

Commit 358b355

Browse files
YAML format error output.
1 parent ecf9e2e commit 358b355

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/monio/Reader.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,11 @@ size_t monio::Reader::findTimeStep(const FileData& fileData, const util::DateTim
274274
std::stringstream msgStream;
275275
msgStream << "Reader::findTimeStep()> DateTime specified not located in file..." << std::endl
276276
<< " Time specified: " << dateTime.toString() << std::endl
277-
<< " Times available: {";
277+
<< " Times available:" << std::endl;
278278

279279
for (const auto& time : fileData.getDateTimes()) {
280-
msgStream << time.toString() << ", " << std::endl
281-
<< " ";
280+
msgStream << " -" << time.toString() << std::endl;
282281
}
283-
msgStream << "}" << std::endl;
284282

285283
utils::throwException(msgStream.str());
286284
}

0 commit comments

Comments
 (0)