Add some unit testing of the CfbSchema.
[cfb.git] / prod / net / jaekl / cfb / CFB.java
index a830b12c07aa8905b1463673e088ba6fc2abb94e..81c30ea7a39ac86aaa9ee90838775953ecc74189 100644 (file)
@@ -200,6 +200,11 @@ public class CFB {
                String cannotConnectFormat = trans(CfbBundle.CANNOT_CONNECT);
                String cannotConnect = MessageFormat.format(cannotConnectFormat, m_host, ""+m_port, m_dbName, m_user);
                exc.printStackTrace(pw);
+               SQLException next = exc.getNextException();
+               while (null != next) {
+                       next.printStackTrace(pw);
+                       next = next.getNextException();
+               }
                pw.println(cannotConnect);
        }