mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Error message refactoring
Take some untranslatable things out of the message and replace by format placeholders, to reduce translatable strings and reduce translation mistakes.
This commit is contained in:
@@ -422,7 +422,7 @@ retry:
|
||||
ereport(WARNING,
|
||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||
errmsg("out of logical replication worker slots"),
|
||||
errhint("You might need to increase max_logical_replication_workers.")));
|
||||
errhint("You might need to increase %s.", "max_logical_replication_workers")));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -496,7 +496,7 @@ retry:
|
||||
ereport(WARNING,
|
||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||
errmsg("out of background worker slots"),
|
||||
errhint("You might need to increase max_worker_processes.")));
|
||||
errhint("You might need to increase %s.", "max_worker_processes")));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1287,7 +1287,7 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
|
||||
errmsg("invalidating obsolete replication slot \"%s\"",
|
||||
NameStr(slotname)),
|
||||
errdetail_internal("%s", err_detail.data),
|
||||
hint ? errhint("You might need to increase max_slot_wal_keep_size.") : 0);
|
||||
hint ? errhint("You might need to increase %s.", "max_slot_wal_keep_size") : 0);
|
||||
|
||||
pfree(err_detail.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user