mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Use consistent format for reporting GetLastError()
Use something like "error code %lu" for reporting GetLastError() values on Windows. Previously, a mix of different wordings and formats were in use.
This commit is contained in:
@ -1114,8 +1114,8 @@ identify_system_timezone(void)
|
||||
&rootKey) != ERROR_SUCCESS)
|
||||
{
|
||||
ereport(LOG,
|
||||
(errmsg("could not open registry key to identify system time zone: %d",
|
||||
(int) GetLastError()),
|
||||
(errmsg("could not open registry key to identify system time zone: error code %lu",
|
||||
GetLastError()),
|
||||
errdetail("The PostgreSQL time zone will be set to \"%s\".",
|
||||
"GMT"),
|
||||
errhint("You can specify the correct timezone in postgresql.conf.")));
|
||||
|
Reference in New Issue
Block a user