From 9b7d3a5d9b4ab8b7c4b7367d8d2ed926af26399b Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 12 Jan 2010 10:17:46 +0000 Subject: [PATCH] In case of invalid state, show value in error msg --- src/objects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects.c b/src/objects.c index 7212030..7076876 100644 --- a/src/objects.c +++ b/src/objects.c @@ -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); -- 2.40.0