mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user