summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-05-24 12:59:42 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-05-24 12:59:42 +0200
commitb1eaa6fc9192c3c94f16129dc61ad714effa495e (patch)
tree85022fdf75a1c16e16e094221dfbffe8869626a8
parent9220f6336e0716849ab4ebaa35b71adfe179da8d (diff)
library: PCUIF_CodecPort: Log PCU socket connect error string
-rw-r--r--library/PCUIF_CodecPort.ttcn6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/PCUIF_CodecPort.ttcn b/library/PCUIF_CodecPort.ttcn
index fe428af..c642202 100644
--- a/library/PCUIF_CodecPort.ttcn
+++ b/library/PCUIF_CodecPort.ttcn
@@ -65,7 +65,11 @@ function f_pcuif_connect(PCUIF_CODEC_PT pt, charstring sock) return integer {
[] pt.receive(UD_connect_result:?) -> value res {
if (ispresent(res.result) and ispresent(res.result.result_code) and
res.result.result_code == ERROR) {
- setverdict(fail, "Error connecting to PCU socket");
+ if (ispresent(res.result.err)) {
+ setverdict(fail, "Error connecting to PCU socket: ", res.result.err);
+ } else {
+ setverdict(fail, "Error connecting to PCU socket");
+ }
self.stop;
} else {
return res.id;