Stefan Sperling has uploaded this change for review. ( 
https://gerrit.osmocom.org/10725


Change subject: improve connection failure message in IPA emulation
......................................................................

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
---
M library/IPA_Emulation.ttcnpp
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/25/10725/1

diff --git a/library/IPA_Emulation.ttcnpp b/library/IPA_Emulation.ttcnpp
index 5c385e6..7a26a6b 100644
--- a/library/IPA_Emulation.ttcnpp
+++ b/library/IPA_Emulation.ttcnpp
@@ -208,7 +208,8 @@
        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;

--
To view, visit https://gerrit.osmocom.org/10725
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I828fe67d66bcd668aa14922b89a2feac56dc2d9a
Gerrit-Change-Number: 10725
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Sperling <ssperl...@sysmocom.de>

Reply via email to