mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: add better error reporting for file open failures
This commit is contained in:
@@ -327,9 +327,10 @@ bool cmCacheManager::SaveCache(const char* path)
|
||||
tempFile += ".tmp";
|
||||
std::ofstream fout(tempFile.c_str());
|
||||
if(!fout)
|
||||
{
|
||||
{
|
||||
cmSystemTools::Error("Unable to open cache file for save. ",
|
||||
cacheFile.c_str());
|
||||
cmSystemTools::ReportLastSystemError("");
|
||||
return false;
|
||||
}
|
||||
// before writting the cache, update the version numbers
|
||||
|
||||
Reference in New Issue
Block a user