Change in osmo-ttcn3-hacks[master]: library: PCUIF_CodecPort: Log PCU socket connect error string

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu May 24 17:58:23 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9273 )

Change subject: library: PCUIF_CodecPort: Log PCU socket connect error string
......................................................................

library: PCUIF_CodecPort: Log PCU socket connect error string

Change-Id: I7045061770cda5b50d05dbf756656e380084a703
---
M library/PCUIF_CodecPort.ttcn
1 file changed, 5 insertions(+), 1 deletion(-)

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



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 @@
 	[] 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;

-- 
To view, visit https://gerrit.osmocom.org/9273
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: I7045061770cda5b50d05dbf756656e380084a703
Gerrit-Change-Number: 9273
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180524/33d2a4f4/attachment.htm>


More information about the gerrit-log mailing list