HTTPRepo: Add detail to an error

This is showing up in the wild, but not clear how, so extend the
logging.
This commit is contained in:
James Turner
2021-07-29 08:47:12 +01:00
parent 2b5ac6350d
commit c457561472

View File

@@ -1424,7 +1424,8 @@ HTTPRepository::failure() const
SG_LOG(SG_TERRASYNC, SG_WARN,
"failed to update entry:" << relativePath << " status/code: "
<< innerResultCodeAsString(fileStatus)
<< "/" << fileStatus);
<< "/" << fileStatus
<< "\nrepo:" << rootDir);
simgear::reportFailure(simgear::LoadFailure::NetworkError, simgear::ErrorCode::TerraSync,
"failed to update entry:" + innerResultCodeAsString(fileStatus),