1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Do not prefix error messages with the string "PL/Python: "

It is redundant, given the error context.

Jan Urbański
This commit is contained in:
Peter Eisentraut
2011-01-27 01:00:58 +02:00
parent 582b5ac62e
commit 5829738868
8 changed files with 24 additions and 24 deletions

View File

@ -3615,14 +3615,14 @@ PLy_elog(int elevel, const char *fmt,...)
{
if (fmt)
ereport(elevel,
(errmsg("PL/Python: %s", emsg.data),
(errmsg("%s", emsg.data),
(xmsg) ? errdetail("%s", xmsg) : 0,
(hint) ? errhint("%s", hint) : 0,
(query) ? internalerrquery(query) : 0,
(position) ? internalerrposition(position) : 0));
else
ereport(elevel,
(errmsg("PL/Python: %s", xmsg),
(errmsg("%s", xmsg),
(detail) ? errdetail("%s", detail) : 0,
(hint) ? errhint("%s", hint) : 0,
(query) ? internalerrquery(query) : 0,