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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu May 24 11:00:34 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/73/9273/1

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: newchange
Gerrit-Change-Id: I7045061770cda5b50d05dbf756656e380084a703
Gerrit-Change-Number: 9273
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180524/cbe34640/attachment.htm>


More information about the gerrit-log mailing list