1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Unify error messages

... for translatability purposes.
This commit is contained in:
Alvaro Herrera
2019-04-24 09:26:13 -04:00
parent 5c47049180
commit 0a999e1290
6 changed files with 27 additions and 10 deletions

View File

@ -219,7 +219,9 @@ pg_read_file(PG_FUNCTION_ARGS)
ereport(ERROR,
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
(errmsg("must be superuser to read files with adminpack 1.0"),
errhint("Consider using pg_file_read(), which is part of core, instead."))));
/* translator: %s is a SQL function name */
errhint("Consider using %s, which is part of core, instead.",
"pg_file_read()"))));
/* handle optional arguments */
if (PG_NARGS() >= 3)