1
0
Fork 0

Explicitly log nav-cache read-only flag.

This commit is contained in:
James Turner 2017-02-27 15:50:10 +00:00
parent cad283b2ce
commit ec8b55d3c5

View file

@ -261,6 +261,8 @@ public:
SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache at:" << path); SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache at:" << path);
readOnly = fgGetBool("/sim/fghome-readonly", false); readOnly = fgGetBool("/sim/fghome-readonly", false);
SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache read-only flags is:" << readOnly);
if (!readOnly && !path.canWrite()) { if (!readOnly && !path.canWrite()) {
throw sg_exception("Nav-cache file is not writeable"); throw sg_exception("Nav-cache file is not writeable");
} }