aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-08-31 15:05:39 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-08-31 15:07:40 +0200
commit6a90be4baebcc3bf6a0e8464c0144cf43f35335f (patch)
tree79cdbf4427adbc3c693df4f2abb4350f9f865bde /library
parentd65d05634cf864d49c977a302c6459a62486b826 (diff)
improve connection failure message in IPA emulation
Show addresses and ports which were attempted in the IPA connection failure message. Example output: Verdict: fail reason: Could not connect IPA socket from "" port -1 \ to "127.0.0.1" port 4238; check your configuration Change-Id: I828fe67d66bcd668aa14922b89a2feac56dc2d9a
Diffstat (limited to 'library')
-rw-r--r--library/IPA_Emulation.ttcnpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/IPA_Emulation.ttcnpp b/library/IPA_Emulation.ttcnpp
index 5c385e68..7a26a6be 100644
--- a/library/IPA_Emulation.ttcnpp
+++ b/library/IPA_Emulation.ttcnpp
@@ -208,7 +208,8 @@ function f_connect(charstring remote_host, IPL4asp_Types.PortNumber remote_port,
res := IPA_CodecPort_CtrlFunct.f_IPL4_connect(IPA_PORT, remote_host, remote_port,
local_host, local_port, 0, { tcp:={} });
if (not ispresent(res.connId)) {
- setverdict(fail, "Could not connect IPA socket, check your configuration");
+ setverdict(fail, "Could not connect IPA socket from ", local_host, " port ", local_port,
+ " to ", remote_host, " port ", remote_port, "; check your configuration");
mtc.stop;
}
g_ipa_conn_id := res.connId;