Change in osmo-ttcn3-hacks[master]: Log PCU socket path on errors

Max gerrit-no-reply at lists.osmocom.org
Thu Mar 14 15:30:56 UTC 2019


Max has uploaded this change for review. ( https://gerrit.osmocom.org/13250


Change subject: Log PCU socket path on errors
......................................................................

Log PCU socket path on errors

Change-Id: I5a4a7c9dc630ecd6fc0ca7a21d4b528d811edd06
---
M library/PCUIF_CodecPort.ttcn
1 file changed, 6 insertions(+), 6 deletions(-)



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

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 @@
 		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 @@
 		}
 		}
 	[] T.timeout {
-		setverdict(fail, "Timeout connecting to PCU socket");
+		setverdict(fail, "Timeout connecting to PCU socket ", sock);
 		mtc.stop;
 		}
 	}
@@ -95,9 +95,9 @@
 		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 @@
 		}
 		}
 	[] T.timeout {
-		setverdict(fail, "Timeout waiting for PCU socket connection");
+		setverdict(fail, "Timeout waiting for PCU socket ", sock, " connection");
 		mtc.stop;
 		}
 	}

-- 
To view, visit https://gerrit.osmocom.org/13250
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: I5a4a7c9dc630ecd6fc0ca7a21d4b528d811edd06
Gerrit-Change-Number: 13250
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190314/9c932dc4/attachment.html>


More information about the gerrit-log mailing list