mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Include kernel error message in failed-to-open file reports.
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.162 2000/08/29 09:36:41 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.163 2000/08/29 16:40:19 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -289,11 +289,10 @@ checkDataDir(const char *DataDir)
|
|||||||
fp = AllocateFile(path, PG_BINARY_R);
|
fp = AllocateFile(path, PG_BINARY_R);
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s does not find the database system. "
|
fprintf(stderr, "%s does not find the database system."
|
||||||
"Expected to find it "
|
"\n\tExpected to find it in the PGDATA directory \"%s\","
|
||||||
"in the PGDATA directory \"%s\", but unable to open file "
|
"\n\tbut unable to open file \"%s\": %s\n\n",
|
||||||
"with pathname \"%s\".\n\n",
|
progname, DataDir, path, strerror(errno));
|
||||||
progname, DataDir, path);
|
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user