]> granicus.if.org Git - pgbouncer/commitdiff
In case of invalid state, show value in error msg
authorMarko Kreen <markokr@gmail.com>
Tue, 12 Jan 2010 10:17:46 +0000 (10:17 +0000)
committerMarko Kreen <markokr@gmail.com>
Tue, 12 Jan 2010 10:17:46 +0000 (10:17 +0000)
src/objects.c

index 72120309c10c44006f77be6e6df998470564a309..70768769670460262a9cb49ff413028ac582511c 100644 (file)
@@ -626,7 +626,7 @@ bool release_server(PgSocket *server)
                pool->last_connect_failed = 0;
                break;
        default:
-               fatal("bad server state in release_server");
+               fatal("bad server state in release_server (%d)", server->state);
        }
 
        /* enforce lifetime immidiately on release */
@@ -691,7 +691,7 @@ void disconnect_server(PgSocket *server, bool notify, const char *reason)
                        send_term = 0;
                break;
        default:
-               fatal("disconnect_server: bad server state");
+               fatal("disconnect_server: bad server state (%d)", server->state);
        }
 
        Assert(server->link == NULL);