summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-03-14 16:30:21 +0100
committerMax <msuraev@sysmocom.de>2019-03-15 11:43:32 +0000
commit68b4743c7d025200422462cea58a707d73d05ace (patch)
treece664ad8d25f75d03f9175c994753669a1e6c422
parente521445fee7bb06b4b802cfd04e039555df10ed3 (diff)
Log PCU socket path on errors
-rw-r--r--library/PCUIF_CodecPort.ttcn12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/PCUIF_CodecPort.ttcn b/library/PCUIF_CodecPort.ttcn
index 676a91a..cc86fee 100644
--- a/library/PCUIF_CodecPort.ttcn
+++ b/library/PCUIF_CodecPort.ttcn
@@ -66,9 +66,9 @@ function f_pcuif_connect(PCUIF_CODEC_PT pt, charstring sock) return integer {
if (ispresent(res.result) and ispresent(res.result.result_code) and
res.result.result_code == ERROR) {
if (ispresent(res.result.err)) {
- setverdict(fail, "Error connecting to PCU socket: ", res.result.err);
+ setverdict(fail, "Error connecting to PCU socket ", sock, ": ", res.result.err);
} else {
- setverdict(fail, "Error connecting to PCU socket");
+ setverdict(fail, "Error connecting to PCU socket ", sock);
}
mtc.stop;
} else {
@@ -76,7 +76,7 @@ function f_pcuif_connect(PCUIF_CODEC_PT pt, charstring sock) return integer {
}
}
[] T.timeout {
- setverdict(fail, "Timeout connecting to PCU socket");
+ setverdict(fail, "Timeout connecting to PCU socket ", sock);
mtc.stop;
}
}
@@ -95,9 +95,9 @@ function f_pcuif_listen(PCUIF_CODEC_PT pt, charstring sock) return integer {
if (ispresent(res.result) and ispresent (res.result.result_code) and
res.result.result_code == ERROR) {
if (ispresent(res.result.err)) {
- setverdict(fail, "Error listening on PCU socket: ", res.result.err);
+ setverdict(fail, "Error listening on PCU socket ", sock, ": ", res.result.err);
} else {
- setverdict(fail, "Error listening on PCU socket");
+ setverdict(fail, "Error listening on PCU socket ", sock);
}
mtc.stop;
} else {
@@ -105,7 +105,7 @@ function f_pcuif_listen(PCUIF_CODEC_PT pt, charstring sock) return integer {
}
}
[] T.timeout {
- setverdict(fail, "Timeout waiting for PCU socket connection");
+ setverdict(fail, "Timeout waiting for PCU socket ", sock, " connection");
mtc.stop;
}
}