From 417ecca0bcde10665f07029c92b953db69d3039c Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Thu, 11 Oct 2007 12:02:35 +0000 Subject: [PATCH] cleaner error messages --- src/execute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/execute.c b/src/execute.c index 12b76a8..1b8a123 100644 --- a/src/execute.c +++ b/src/execute.c @@ -38,7 +38,7 @@ static void conn_error(ProxyFunction *func, ProxyConnection *conn, const char *desc) { - plproxy_error(func, "libpq error in %s: %s", + plproxy_error(func, "%s: %s", desc, PQerrorMessage(conn->db)); } @@ -320,7 +320,7 @@ another_result(ProxyFunction *func, ProxyConnection *conn) break; default: PQclear(res); - conn_error(func, conn, "weird result"); + conn_error(func, conn, "remote error"); } return true; } -- 2.39.5