summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-03 19:26:30 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-03 19:26:30 (GMT)
commit68674bd0d795b1d560e8b819251480a753ba9882 (patch)
treedb448fae4ab974786009ff09a6fea7c052b0137b /Source/CPack/cpack.cxx
parentbf0c200f0a8f494f3e78465ab8be0763ecdcbb6d (diff)
downloadCMake-68674bd0d795b1d560e8b819251480a753ba9882.zip
CMake-68674bd0d795b1d560e8b819251480a753ba9882.tar.gz
CMake-68674bd0d795b1d560e8b819251480a753ba9882.tar.bz2
ENH: better error messages from the debian package generator
-don't display the cpack help if a generator failed with some problem -check for cmSystemTools::GetErrorOccuredFlag() Alex
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 67b9a05..ba9820f 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -377,13 +377,13 @@ int main (int argc, char *argv[])
{
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
"Cannot initialize CPack generator: "
- << generator.c_str() << std::endl);
+ << gen << std::endl);
parsed = 0;
}
if ( parsed && !cpackGenerator->Initialize(gen, mf, argv[0]) )
{
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
- "Cannot initialize the generator" << std::endl);
+ "Cannot initialize the generator " << gen << std::endl);
parsed = 0;
}
@@ -442,7 +442,7 @@ int main (int argc, char *argv[])
}
}
- if ( !parsed || help )
+ if ( help )
{
doc.CheckOptions(argc, argv);
// Construct and print requested documentation.