Change in osmo-ttcn3-hacks[master]: NS: print ip:port on error

Max gerrit-no-reply at lists.osmocom.org
Tue Nov 6 22:13:31 UTC 2018


Max has submitted this change and it was merged. ( https://gerrit.osmocom.org/11644 )

Change subject: NS: print ip:port on error
......................................................................

NS: print ip:port on error

Change-Id: I2f558021b7754db9593934888d12f9c879dc2988
---
M library/NS_Emulation.ttcn
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/NS_Emulation.ttcn b/library/NS_Emulation.ttcn
index 7cccb25..ca4d1d6 100644
--- a/library/NS_Emulation.ttcn
+++ b/library/NS_Emulation.ttcn
@@ -83,7 +83,9 @@
 		/* Connect the UDP socket */
 		res := f_IPL4_connect(NSCP, config.remote_ip, config.remote_udp_port, config.local_ip, config.local_udp_port, 0, { udp := {}});
 		if (not ispresent(res.connId)) {
-			setverdict(fail, "Could not connect NS UDP socket, check your configuration");
+			setverdict(fail, "Could not connect NS UDP socket from " &
+				   config.local_ip & ":"  & int2str(config.local_udp_port) &
+				   " to " & config.remote_ip & ":" & int2str(config.remote_udp_port));
 			mtc.stop;
 		}
 		g_conn_id := res.connId;

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2f558021b7754db9593934888d12f9c879dc2988
Gerrit-Change-Number: 11644
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Stefan Sperling <ssperling at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181106/8ca1d4ef/attachment.html>


More information about the gerrit-log mailing list