diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-16 12:04:08 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-16 12:04:08 -0400 |
commit | 2333803d84ddabedc5ec5940a180245b4d4dfcca (patch) | |
tree | 45a052103afc551eb763fa0e1674cd1f509f8273 /src/backend/utils/adt | |
parent | 442f8700656bb5ce525d352241a17bbab14193c7 (diff) | |
download | postgresql-2333803d84ddabedc5ec5940a180245b4d4dfcca.tar.gz postgresql-2333803d84ddabedc5ec5940a180245b4d4dfcca.zip |
Use "data directory" not "current directory" in error messages.
The user receiving the message might not understand where the
server's "current directory" is. "Data directory" seems clearer.
(This would not be good for frontend code, but both of these
messages are only issued in the backend.)
Kyotaro Horiguchi
Discussion: https://postgr.es/m/20230316.111646.1564684434328830712.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/utils/adt')
-rw-r--r-- | src/backend/utils/adt/genfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/genfile.c b/src/backend/utils/adt/genfile.c index 75588eebb34..f281ce98068 100644 --- a/src/backend/utils/adt/genfile.c +++ b/src/backend/utils/adt/genfile.c @@ -86,7 +86,7 @@ convert_and_check_filename(text *arg) else if (!path_is_relative_and_below_cwd(filename)) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - errmsg("path must be in or below the current directory"))); + errmsg("path must be in or below the data directory"))); return filename; } |