- theError = "Error: Selected shape has unacceptable type. Acceptable types are: faces or wires on sketch, "
- "whole sketch(if it has at least one face), and whole objects with shape types: ";
- std::list<std::string>::const_iterator anIt = theArguments.cbegin();
- theError += *anIt;
- for(++anIt; anIt != theArguments.cend(); ++anIt) {
- theError += ", " + *anIt;
+ theError = "Error: Selected shape has unacceptable type. Acceptable types are: faces or wires on sketch, whole sketch(if it has at least one face), and whole objects with shape types: %1";
+ std::string anArgumentString;
+ for(auto anIt = theArguments.cbegin(); anIt != theArguments.cend(); ++anIt) {
+ if (!anArgumentString.empty())
+ anArgumentString += ", ";
+ anArgumentString += *anIt;