diff options
| author | Marko Kreen | 2007-10-11 12:02:35 +0000 |
|---|---|---|
| committer | Marko Kreen | 2007-10-11 12:02:35 +0000 |
| commit | 417ecca0bcde10665f07029c92b953db69d3039c (patch) | |
| tree | 8a78b3a65f1d80922ec39afd0241b9543389d3e4 /src/execute.c | |
| parent | f66c4d62c4551c6fa4248feaa8a8048ec96e9932 (diff) | |
cleaner error messages
Diffstat (limited to 'src/execute.c')
| -rw-r--r-- | src/execute.c | 4 |
1 files 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; } |
