PostgresConnection.testConnection() in lib/core/database/postgres_connection.dart catches all exceptions and returns false, discarding the actual error message.
Impact: Users see only the generic banner text "Connection failed" in the form, even when the real cause is a certificate rejection or SSL handshake failure.
Expected: Surface the underlying error so the UI can display actionable feedback.
Acceptance criteria:
PostgresConnection.testConnection()inlib/core/database/postgres_connection.dartcatches all exceptions and returnsfalse, discarding the actual error message.Impact: Users see only the generic banner text "Connection failed" in the form, even when the real cause is a certificate rejection or SSL handshake failure.
Expected: Surface the underlying error so the UI can display actionable feedback.
Acceptance criteria:
testConnectionreturns a result object{bool ok, String? error}or throws a typed exception.