Mercurial > hg > monetdb-java
comparison tests/OnClientTester.java @ 743:8bd314491d3e
Show more information when OnClientTester can't connect
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Fri, 24 Feb 2023 10:45:26 +0100 (2023-02-24) |
parents | aeb268156580 |
children | 7e29d42e4267 |
comparison
equal
deleted
inserted
replaced
742:232dfe6c7ec6 | 743:8bd314491d3e |
---|---|
223 stmt = conn.createStatement(); | 223 stmt = conn.createStatement(); |
224 return true; | 224 return true; |
225 } catch (SQLException e) { | 225 } catch (SQLException e) { |
226 System.err.println("Failed to connect using JDBC URL: " + jdbcUrl); | 226 System.err.println("Failed to connect using JDBC URL: " + jdbcUrl); |
227 System.err.println(e); | 227 System.err.println(e); |
228 Throwable t = e; | |
229 while (t.getCause() != null) { | |
230 t = t.getCause(); | |
231 System.err.println("Caused by: " + t); | |
232 } | |
228 } | 233 } |
229 return false; | 234 return false; |
230 } | 235 } |
231 | 236 |
232 private void closeConnection() { | 237 private void closeConnection() { |