cpack: Better error message when generator doesn't exist.

Currently the CPack error message when passed an invalid generator
name  reads like the generator failed to work, rather than the
name was invalid.
This commit is contained in:
Robert Maynard 2018-11-08 09:06:52 -05:00
parent 17e98e00c4
commit eba7273c20
2 changed files with 4 additions and 3 deletions

View File

@ -358,8 +358,9 @@ int main(int argc, char const* const* argv)
cpackGenerator->SetTraceExpand(traceExpand);
} else {
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
"Cannot initialize CPack generator: " << gen
<< std::endl);
"Could not create CPack generator: " << gen
<< std::endl);
parsed = 0;
}

View File

@ -1 +1 @@
^CPack Error: Cannot initialize CPack generator: NotAGenerator
^CPack Error: Could not create CPack generator: NotAGenerator