summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ace/MEM_Connector.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/MEM_Connector.cpp b/ace/MEM_Connector.cpp
index b62be21e137..090e2cf2e9d 100644
--- a/ace/MEM_Connector.cpp
+++ b/ace/MEM_Connector.cpp
@@ -63,7 +63,12 @@ ACE_MEM_Connector::connect (ACE_MEM_Stream &new_stream,
ACE_TRACE ("ACE_MEM_Connector::connect");
if (!this->address_.same_host (remote_sap))
- return -1;
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ASYS_TEXT ("(%P|%t) MEM_Connector can't connect ")
+ ASYS_TEXT ("to %s:%d which is not a local endpoint"),
+ remote_sap.get_host_name (),
+ remote_sap.get_port_number ()),
+ -1);
else
this->address_.set_port_number (remote_sap.get_port_number ());