#1666 CommandFile: Add command and argument name to error messages

This commit is contained in:
Jacob Støren
2017-06-29 16:29:50 +02:00
parent c25895bdad
commit bc0379d246
5 changed files with 16 additions and 5 deletions

View File

@@ -114,7 +114,9 @@ std::vector<RicfCommandObject*> RicfCommandFileReader::readCommands(QTextStream&
{
readCommands.push_back(cObj);
auto rcfCap = cObj->capability<RicfObjectCapability>();
errorMessageContainer->currentCommand = commandName;
rcfCap->readFields(inputStream, objectFactory, errorMessageContainer);
errorMessageContainer->currentCommand = "";
}
}