Commit c57d16eb authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: add better error checking

parent 815ca6bb
......@@ -84,6 +84,21 @@ bool cmSetCommand::Invoke(std::vector<std::string>& args)
value = args[1];
cacheStart = 2;
}
else
{
std::string message;
message += "Syntax error in SET:\n";
message += "CACHE requires TYPE and document string SET command:\n";
message += "SET (";
for(std::vector<std::string>::iterator i = args.begin();
i != args.end(); ++i)
{
message += *i;
}
message += ")\n";
this->SetError(message.c_str());
return false;
}
if(cache)
{
if(args[cacheStart] != "CACHE")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment