Changeset 955 for XmlTools2/trunk
- Timestamp:
- Feb 11, 2014, 6:08:41 PM (11 years ago)
- Location:
- XmlTools2/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XmlTools2/trunk/optionsparser.cpp
r944 r955 274 274 } 275 275 else{ 276 UtilXmlTools::displayErrorMessage("Parameter Parsing"," One operation is required to XmlTools continue. Possible operations are:\n"+276 UtilXmlTools::displayErrorMessage("Parameter Parsing","XmlTools needs an operation to perform. Possible operations are:\n"+ 277 277 Util::toQString("--patch-files\n--add-values\n--remove-values\n--replace-value\n--replace-all-values\n--update-elements\n--invert-elements")); 278 278 } -
XmlTools2/trunk/utilxmltools.cpp
r935 r955 46 46 if(!QFile::exists(file+".bak")){ 47 47 if(!Util::backupFile(file)){ 48 std::cerr << "Couldn't back up file '" << file.toUtf8().constData() << "'. Aborting." << std::endl;48 std::cerr << "Couldn't back up file '" << file.toUtf8().constData() << "'. Aborting." << std::endl; 49 49 exit(1); 50 50 } -
XmlTools2/trunk/xmlpatch.cpp
r953 r955 82 82 83 83 if(xPathExpression.isEmpty()){ 84 errMessage = " It wasn't found any node with aElementName: '" + filters.getElementName() + "'";84 errMessage = "No node was found with an ElementName: '" + filters.getElementName() + "'"; 85 85 if(filters.getParentElementName()!=""){ 86 86 errMessage += " and a ParentElementName: '" + filters.getParentElementName() + "'"; … … 91 91 } 92 92 else{ 93 errMessage = " It wasn't found any node with aXPathExpression: '" + xPathExpression + "'";93 errMessage = "No node was found with an XPathExpression: '" + xPathExpression + "'"; 94 94 } 95 95 … … 143 143 144 144 if(xPathExpression.isEmpty()){ 145 errMessage = " It wasn't found any node with aElementName: '" + filters.getElementName() + "'";145 errMessage = "No node was found with an ElementName: '" + filters.getElementName() + "'"; 146 146 if(filters.getParentElementName()!=""){ 147 147 errMessage += " and a ParentElementName: '" + filters.getParentElementName() + "'"; … … 152 152 } 153 153 else{ 154 errMessage = " It wasn't found any node with aXPathExpression: '" + xPathExpression + "'";154 errMessage = "No node was found with an XPathExpression: '" + xPathExpression + "'"; 155 155 } 156 156 … … 371 371 } 372 372 else if(!xPathExpression.isEmpty() && !filters.getElementName().isEmpty()){ 373 UtilXmlTools::displayErrorMessage("@ADD_INSIDE_NODES","ElementName option and XPathExpression option scannot be used simultaneously.");373 UtilXmlTools::displayErrorMessage("@ADD_INSIDE_NODES","ElementName option and XPathExpression option cannot be used simultaneously."); 374 374 } 375 375 if(filters.getAttributeName()!="" && filters.getAttributeValue()==""){ … … 416 416 } 417 417 else if(!xPathExpression.isEmpty() && !filters.getElementName().isEmpty()){ 418 UtilXmlTools::displayErrorMessage("@REMOVE_NODES","ElementName option and XPathExpression option scannot be used simultaneously.");418 UtilXmlTools::displayErrorMessage("@REMOVE_NODES","ElementName option and XPathExpression option cannot be used simultaneously."); 419 419 } 420 420 … … 499 499 parameter.remove(" "); // just remove the space added so it doesn't look weird when outputted to the user 500 500 501 UtilXmlTools::displayErrorMessage("Read patch file parameter","Couldn't retr eive '" + parameter + "' parameter.");501 UtilXmlTools::displayErrorMessage("Read patch file parameter","Couldn't retrieve '" + parameter + "' parameter."); 502 502 } 503 503
Note:
See TracChangeset
for help on using the changeset viewer.