mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Improve error messages after LoadLibrary()
Move the file name to a format parameter to ease translatability. Add error code where missing. Make the wording consistent.
This commit is contained in:
@@ -61,8 +61,8 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
|
||||
Advapi32Handle = LoadLibrary("ADVAPI32.DLL");
|
||||
if (Advapi32Handle == NULL)
|
||||
{
|
||||
pg_log_error("could not load advapi32.dll: error code %lu",
|
||||
GetLastError());
|
||||
pg_log_error("could not load library \"%s\": error code %lu",
|
||||
"ADVAPI32.DLL", GetLastError());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user