Skip to content

Commit 6971a83

Browse files
author
Amit Kapila
committed
Improve some error messages.
It is not our usual style to use "we" in the error messages. Author: Kyotaro Horiguchi Reviewed-By: Amit Kapila Discussion: https://postgr.es/m/20220914.111507.13049297635620898.horikyota.ntt@gmail.com
1 parent 3f0c901 commit 6971a83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/replication/pgoutput/pgoutput.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,13 @@ pgoutput_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt,
441441
if (data->protocol_version > LOGICALREP_PROTO_MAX_VERSION_NUM)
442442
ereport(ERROR,
443443
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
444-
errmsg("client sent proto_version=%d but we only support protocol %d or lower",
444+
errmsg("client sent proto_version=%d but server only supports protocol %d or lower",
445445
data->protocol_version, LOGICALREP_PROTO_MAX_VERSION_NUM)));
446446

447447
if (data->protocol_version < LOGICALREP_PROTO_MIN_VERSION_NUM)
448448
ereport(ERROR,
449449
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
450-
errmsg("client sent proto_version=%d but we only support protocol %d or higher",
450+
errmsg("client sent proto_version=%d but server only supports protocol %d or higher",
451451
data->protocol_version, LOGICALREP_PROTO_MIN_VERSION_NUM)));
452452

453453
if (data->publication_names == NIL)

src/backend/storage/file/fd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ set_max_safe_fds(void)
978978
ereport(FATAL,
979979
(errcode(ERRCODE_INSUFFICIENT_RESOURCES),
980980
errmsg("insufficient file descriptors available to start server process"),
981-
errdetail("System allows %d, we need at least %d.",
981+
errdetail("System allows %d, server needs at least %d.",
982982
max_safe_fds + NUM_RESERVED_FDS,
983983
FD_MINFREE + NUM_RESERVED_FDS)));
984984

0 commit comments

Comments
 (0)