# HG changeset patch
# User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
# Date 1704452163 -3600
# Node ID 157dcb2d651667a37b6a8a13990edd03e72588c4
# Parent  9f200daffa35a809a06123f7994c36b995f4edc2
relax wording of expected exception

diff --git a/tests/TLSTester.java b/tests/TLSTester.java
--- a/tests/TLSTester.java
+++ b/tests/TLSTester.java
@@ -201,7 +201,7 @@ public class TLSTester {
 	}
 
 	private void test_fail_plain_to_tls() throws IOException, SQLException {
-		attempt("fail_plain_to_tls", "server1").with(Parameter.TLS, false).expectFailure("Cannot connect");
+		attempt("fail_plain_to_tls", "server1").with(Parameter.TLS, false).expectFailure("Cannot connect", "Could not connect");
 	}
 
 	private void test_connect_server_name() throws IOException, SQLException {
@@ -305,7 +305,7 @@ public class TLSTester {
 					if (e.getMessage().contains(expected))
 						return;
 				String message = "Test " + testName + " threw the wrong exception: " + e.getMessage() + '\n' + "Expected:\n        <" + String.join(">\n        <", expectedMessages) + ">";
-				throw new RuntimeException(message);
+				throw new RuntimeException(message, e);
 
 			}
 		}