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:
@ -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,
|
||||
|
Reference in New Issue
Block a user