mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Tweak detail and hint messages to be consistent with project policy
Detail and hint messages should be full sentences and should end with a period, but some of the messages newly-introduced in v15 did not follow that. Author: Justin Pryzby Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/20220719120948.GF12702@telsasoft.com Backpatch-through: 15
This commit is contained in:
@ -193,7 +193,7 @@ postgres_fdw_validator(PG_FUNCTION_ARGS)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
errmsg("password_required=false is superuser-only"),
|
||||
errhint("User mappings with the password_required option set to false may only be created or modified by the superuser")));
|
||||
errhint("User mappings with the password_required option set to false may only be created or modified by the superuser.")));
|
||||
}
|
||||
else if (strcmp(def->defname, "sslcert") == 0 ||
|
||||
strcmp(def->defname, "sslkey") == 0)
|
||||
@ -203,7 +203,7 @@ postgres_fdw_validator(PG_FUNCTION_ARGS)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
||||
errmsg("sslcert and sslkey are superuser-only"),
|
||||
errhint("User mappings with the sslcert or sslkey options set may only be created or modified by the superuser")));
|
||||
errhint("User mappings with the sslcert or sslkey options set may only be created or modified by the superuser.")));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user