Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c95f54c5
Commit
c95f54c5
authored
Nov 25, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More adjustment of error messages
parent
083e10e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+12
-12
No files found.
src/bin/initdb/initdb.c
View file @
c95f54c5
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
* Portions taken from FreeBSD.
*
*
* $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.1
3 2003/11/23 22:17:59
petere Exp $
* $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.1
4 2003/11/25 19:18:26
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -485,18 +485,18 @@ pclose_check(FILE *stream)
...
@@ -485,18 +485,18 @@ pclose_check(FILE *stream)
}
}
else
if
(
WIFEXITED
(
exitstatus
))
else
if
(
WIFEXITED
(
exitstatus
))
{
{
fprintf
(
stderr
,
_
(
"child process exited with exit code %d
\n
"
),
fprintf
(
stderr
,
_
(
"
%s:
child process exited with exit code %d
\n
"
),
WEXITSTATUS
(
exitstatus
));
progname
,
WEXITSTATUS
(
exitstatus
));
}
}
else
if
(
WIFSIGNALED
(
exitstatus
))
else
if
(
WIFSIGNALED
(
exitstatus
))
{
{
fprintf
(
stderr
,
_
(
"child process was terminated by signal %d
\n
"
),
fprintf
(
stderr
,
_
(
"
%s:
child process was terminated by signal %d
\n
"
),
WTERMSIG
(
exitstatus
));
progname
,
WTERMSIG
(
exitstatus
));
}
}
else
else
{
{
fprintf
(
stderr
,
_
(
"
child process exited with unexpect
ed status %d
\n
"
),
fprintf
(
stderr
,
_
(
"
%s: child process exited with unrecogniz
ed status %d
\n
"
),
exitstatus
);
progname
,
exitstatus
);
}
}
exit_nicely
();
exit_nicely
();
...
@@ -842,9 +842,9 @@ check_input(char *path)
...
@@ -842,9 +842,9 @@ check_input(char *path)
if
(
stat
(
path
,
&
statbuf
)
!=
0
||
!
S_ISREG
(
statbuf
.
st_mode
))
if
(
stat
(
path
,
&
statbuf
)
!=
0
||
!
S_ISREG
(
statbuf
.
st_mode
))
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
_
(
"%s: file
\"
%s
\"
not found
\n
"
_
(
"%s: file
\"
%s
\"
does not exist
\n
"
"This means you have a corrupted installation or identified
\n
"
"This means you have a corrupted installation or identified
\n
"
"the wrong directory with the invocation option -L.
\n
"
),
"the wrong directory with the invocation option -L.
\n
"
),
progname
,
path
);
progname
,
path
);
exit
(
1
);
exit
(
1
);
}
}
...
@@ -1900,7 +1900,7 @@ check_ok()
...
@@ -1900,7 +1900,7 @@ check_ok()
}
}
else
if
(
output_failed
)
else
if
(
output_failed
)
{
{
printf
(
_
(
"
failed to
write to child process
\n
"
));
printf
(
_
(
"
could not
write to child process
\n
"
));
exit_nicely
();
exit_nicely
();
}
}
else
else
...
@@ -2252,7 +2252,7 @@ main(int argc, char *argv[])
...
@@ -2252,7 +2252,7 @@ main(int argc, char *argv[])
if
((
short_version
=
get_short_version
())
==
NULL
)
if
((
short_version
=
get_short_version
())
==
NULL
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not
get valid short version
\n
"
),
progname
);
fprintf
(
stderr
,
_
(
"%s: could not
determine valid short version string
\n
"
),
progname
);
exit
(
1
);
exit
(
1
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment