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

Max gerrit-no-reply at lists.osmocom.org
Fri Mar 15 11:43:32 UTC 2019


Max has submitted this change and it was merged. ( 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(-)

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



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: merged
Gerrit-Change-Id: I5a4a7c9dc630ecd6fc0ca7a21d4b528d811edd06
Gerrit-Change-Number: 13250
Gerrit-PatchSet: 2
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190315/0f0a2a74/attachment.html>


More information about the gerrit-log mailing list