diff --git a/src/PlusServer/vtkPlusOpenIGTLinkServer.cxx b/src/PlusServer/vtkPlusOpenIGTLinkServer.cxx index c84c9dbdf..ff1829b7a 100644 --- a/src/PlusServer/vtkPlusOpenIGTLinkServer.cxx +++ b/src/PlusServer/vtkPlusOpenIGTLinkServer.cxx @@ -1296,13 +1296,15 @@ igtl::MessageBase::Pointer vtkPlusOpenIGTLinkServer::CreateIgtlMessageFromComman // Send command result details both in XML and in metadata, slowly phase towards metadata std::ostringstream replyStr; - replyStr << "" << (commandResponse->GetStatus() ? "true" : "false") << ""; + replyStr << "GetCommandName() << "\""; + replyStr << " Status=\"" << (commandResponse->GetStatus() ? "SUCCESS" : "FAIL") << "\""; if (commandResponse->GetStatus() == PLUS_FAIL) { - replyStr << "" << commandResponse->GetErrorString() << ""; + replyStr << " Error=\"" << commandResponse->GetErrorString() << "\""; igtlMessage->SetMetaDataElement("Error", IANA_TYPE_US_ASCII, commandResponse->GetErrorString()); } - replyStr << "" << commandResponse->GetResultString() << ""; + replyStr << " Message=\"" << commandResponse->GetResultString() << "\">"; igtlMessage->SetMetaDataElement("Message", IANA_TYPE_US_ASCII, commandResponse->GetResultString()); igtlMessage->SetMetaDataElement("Result", IANA_TYPE_US_ASCII, (commandResponse->GetStatus() ? "true" : "false"));