summaryrefslogtreecommitdiffstats
path: root/Source/cmDumpDocumentation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDumpDocumentation.cxx')
-rw-r--r--Source/cmDumpDocumentation.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmDumpDocumentation.cxx b/Source/cmDumpDocumentation.cxx
index 0155ac2..9bfc9fc 100644
--- a/Source/cmDumpDocumentation.cxx
+++ b/Source/cmDumpDocumentation.cxx
@@ -60,7 +60,8 @@ int DumpHTML(const char* outname)
std::ofstream fout(outname);
if(!fout)
{
- std::cerr << "failed to open output file: " << outname << "\n";
+ std::cerr << "failed to open output file: " << outname << "\n";
+ cmSystemTools::ReportLastSystemError("");
return -1;
}
@@ -104,6 +105,7 @@ int DumpForCoverage(const char* outname)
if(!fout)
{
std::cerr << "failed to open output file: " << outname << "\n";
+ cmSystemTools::ReportLastSystemError("");
return -1;
}
return DumpForCoverageToStream(fout);