src/Aircraft/replay.cxx: extra diagnostic if save to file fails.
Also reduced m_continuous_in_config diagnostic.
This commit is contained in:
parent
c1fc71066b
commit
2b6ccadef6
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue