cleaner error messages
authorMarko Kreen <markokr@gmail.com>
Thu, 11 Oct 2007 12:02:35 +0000 (12:02 +0000)
committerMarko Kreen <markokr@gmail.com>
Thu, 11 Oct 2007 12:02:35 +0000 (12:02 +0000)
src/execute.c

index 12b76a8895d62aaaba12eb8e69308370fe14f92b..1b8a123db4328a57e93a1d3afffed22d63884131 100644 (file)
@@ -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;
 }