diff options
author | David Cole <david.cole@kitware.com> | 2009-10-02 18:51:43 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-02 18:51:43 (GMT) |
commit | 837364cb04a53a0fd3f5150da4f56524066fe2a7 (patch) | |
tree | 19a1c6ab42770c2b2dd51192e99c041008c08813 /Source/cmStringCommand.cxx | |
parent | 3d3efbd3f50cf1acbbda1a8d07d53874f2388842 (diff) | |
download | CMake-837364cb04a53a0fd3f5150da4f56524066fe2a7.zip CMake-837364cb04a53a0fd3f5150da4f56524066fe2a7.tar.gz CMake-837364cb04a53a0fd3f5150da4f56524066fe2a7.tar.bz2 |
Correct some typos in error messages in the string command. Add a test that covers more of the code implemented in cmStringCommand.cxx, especially the error handlers.
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r-- | Source/cmStringCommand.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx index 134f9ea..2313853 100644 --- a/Source/cmStringCommand.cxx +++ b/Source/cmStringCommand.cxx @@ -381,7 +381,7 @@ bool cmStringCommand::RegexReplace(std::vector<std::string> const& args) { std::string e = "sub-command REGEX, mode REPLACE: Unknown escape \""; e += replace.substr(r, 2); - e += "\"in replace-expression."; + e += "\" in replace-expression."; this->SetError(e.c_str()); return false; } @@ -559,7 +559,7 @@ bool cmStringCommand::HandleReplaceCommand(std::vector<std::string> const& { if(args.size() < 5) { - this->SetError("sub-command REPLACE requires four arguments."); + this->SetError("sub-command REPLACE requires at least four arguments."); return false; } @@ -586,7 +586,7 @@ bool cmStringCommand::HandleSubstringCommand(std::vector<std::string> const& { if(args.size() != 5) { - this->SetError("sub-command REPLACE requires four arguments."); + this->SetError("sub-command SUBSTRING requires four arguments."); return false; } @@ -647,7 +647,7 @@ bool cmStringCommand::HandleStripCommand( { if(args.size() != 3) { - this->SetError("sub-command LENGTH requires two arguments."); + this->SetError("sub-command STRIP requires two arguments."); return false; } |