]> granicus.if.org Git - pgbouncer/commitdiff
Improve error msg when connections to server fail.
authorMarko Kreen <markokr@gmail.com>
Tue, 22 Nov 2011 21:19:57 +0000 (23:19 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 22 Nov 2011 21:19:57 +0000 (23:19 +0200)
src/objects.c

index a2f7bd63ce29e61c0e74d5d92d3159f3b7d47844..04ca32a8fe762ea42d2ec03ff2d18b3a1dba77db 100644 (file)
@@ -509,7 +509,7 @@ bool check_fast_fail(PgSocket *client)
        cnt = pool_server_count(pool) - statlist_count(&pool->new_server_list);
        if (cnt)
                return true;
-       disconnect_client(client, true, "no working server connection");
+       disconnect_client(client, true, "pgbouncer cannot connect to server");
 
        /* usual relaunch wont work, as there are no waiting clients */
        launch_new_connection(pool);