projects
/
plproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f66c4d6
)
cleaner error messages
author
Marko Kreen
<markokr@gmail.com>
Thu, 11 Oct 2007 12:02:35 +0000
(12:02 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Thu, 11 Oct 2007 12:02:35 +0000
(12:02 +0000)
src/execute.c
patch
|
blob
|
blame
|
history
diff --git
a/src/execute.c
b/src/execute.c
index 12b76a8895d62aaaba12eb8e69308370fe14f92b..1b8a123db4328a57e93a1d3afffed22d63884131 100644
(file)
--- 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;
}