From 6a90be4baebcc3bf6a0e8464c0144cf43f35335f Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Fri, 31 Aug 2018 15:05:39 +0200 Subject: 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 --- library/IPA_Emulation.ttcnpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'library') 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; -- cgit v1.2.3