ldb: Output more error information when a connect fails