aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-06 19:00:50 +0100
committerMax <msuraev@sysmocom.de>2018-11-06 22:13:30 +0000
commit39e6cae97c22f42fbb3cad54a0c84d5a19941578 (patch)
tree143c8df439c6ccc191d122fce2b4f2c7ce34885d /library
parentcdce375449622ee783b91887852c88f57cb70f9b (diff)
NS: print ip:port on error
Diffstat (limited to 'library')
-rw-r--r--library/NS_Emulation.ttcn4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/NS_Emulation.ttcn b/library/NS_Emulation.ttcn
index 7cccb254..ca4d1d61 100644
--- a/library/NS_Emulation.ttcn
+++ b/library/NS_Emulation.ttcn
@@ -83,7 +83,9 @@ module NS_Emulation {
/* 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;