1
0
Fork 0

src/Aircraft/replay.cxx: extra diagnostic if save to file fails.

Also reduced m_continuous_in_config diagnostic.
This commit is contained in:
Julian Smith 2021-09-04 18:13:04 +01:00
parent c1fc71066b
commit 2b6ccadef6

View file

@ -2133,6 +2133,7 @@ FGReplay::saveTape(const SGPath& Filename, SGPropertyNode_ptr MetaData)
/* done *********************************************************/ /* done *********************************************************/
output.close(); output.close();
if (!ok) SG_LOG(SG_SYSTEMS, SG_ALERT, "Failed to write to file " << Filename);
return ok; return ok;
} }
@ -2420,7 +2421,7 @@ FGReplay::loadTape(const SGPath& Filename, bool Preview, SGPropertyNode& MetaMet
m_continuous_in_config = new SGPropertyNode; m_continuous_in_config = new SGPropertyNode;
int e = loadContinuousHeader(Filename.str(), &in, m_continuous_in_config); int e = loadContinuousHeader(Filename.str(), &in, m_continuous_in_config);
if (e == 0) { if (e == 0) {
SG_LOG(SG_SYSTEMS, SG_DEBUG, "m_continuous_in_config is:\n" SG_LOG(SG_SYSTEMS, SG_BULK, "m_continuous_in_config is:\n"
<< writePropertiesInline(m_continuous_in_config, true /*write_all*/) << "\n"); << writePropertiesInline(m_continuous_in_config, true /*write_all*/) << "\n");
copyProperties(m_continuous_in_config->getNode("meta", 0, true), &MetaMeta); copyProperties(m_continuous_in_config->getNode("meta", 0, true), &MetaMeta);
if (Preview) { if (Preview) {