Skip to content

Commit 68f6f2b

Browse files
committed
Remove function names from error messages
They are not necessary, and having them there gives useless work for translators.
1 parent c6e394c commit 68f6f2b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/backend/access/transam/xlogfuncs.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ pg_walfile_name_offset(PG_FUNCTION_ARGS)
465465
ereport(ERROR,
466466
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
467467
errmsg("recovery is in progress"),
468-
errhint("pg_walfile_name_offset() cannot be executed during recovery.")));
468+
errhint("%s cannot be executed during recovery.",
469+
"pg_walfile_name_offset()")));
469470

470471
/*
471472
* Construct a tuple descriptor for the result row. This must match this
@@ -521,7 +522,8 @@ pg_walfile_name(PG_FUNCTION_ARGS)
521522
ereport(ERROR,
522523
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
523524
errmsg("recovery is in progress"),
524-
errhint("pg_walfile_name() cannot be executed during recovery.")));
525+
errhint("%s cannot be executed during recovery.",
526+
"pg_walfile_name()")));
525527

526528
XLByteToPrevSeg(locationpoint, xlogsegno, wal_segment_size);
527529
XLogFileName(xlogfilename, ThisTimeLineID, xlogsegno, wal_segment_size);

src/backend/commands/extension.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,8 @@ pg_extension_config_dump(PG_FUNCTION_ARGS)
23482348
if (!creating_extension)
23492349
ereport(ERROR,
23502350
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2351-
errmsg("pg_extension_config_dump() can only be called "
2352-
"from an SQL script executed by CREATE EXTENSION")));
2351+
errmsg("%s can only be called from an SQL script executed by CREATE EXTENSION",
2352+
"pg_extension_config_dump()")));
23532353

23542354
/*
23552355
* Check that the table exists and is a member of the extension being

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy