aboutsummaryrefslogtreecommitdiffstats
path: root/remote-process
diff options
context:
space:
mode:
Diffstat (limited to 'remote-process')
-rw-r--r--remote-process/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/remote-process/main.cpp b/remote-process/main.cpp
index 2daa055..85514ca 100644
--- a/remote-process/main.cpp
+++ b/remote-process/main.cpp
@@ -98,17 +98,19 @@ public:
bool sendAndDisplayCommand(CConnectionSocket &connectionSocket, CRequestMessage &requestMessage)
{
- if (!requestMessage.serialize(&connectionSocket, true)) {
+ string strError;
+
+ if (!requestMessage.serialize(&connectionSocket, true, strError)) {
- cerr << "Unable to send command to target" << endl;
+ cerr << "Unable to send command to target: " << strError << endl;
return false;
}
///// Get answer
CAnswerMessage answerMessage;
- if (!answerMessage.serialize(&connectionSocket, false)) {
+ if (!answerMessage.serialize(&connectionSocket, false, strError)) {
- cerr << "No answer received from target" << endl;
+ cerr << "Unable to received answer from target: " << strError << endl;
return false;
}