projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b0c7e2
)
Adjust error message
author
Peter Eisentraut
<peter_e@gmx.net>
Mon, 11 Jun 2018 21:19:11 +0000
(17:19 -0400)
committer
Peter Eisentraut
<peter_e@gmx.net>
Mon, 11 Jun 2018 21:19:11 +0000
(17:19 -0400)
Makes it look more similar to other ones, and avoids the need for
pluralization.
src/common/controldata_utils.c
patch
|
blob
|
blame
|
history
diff --git
a/src/common/controldata_utils.c
b/src/common/controldata_utils.c
index 78a9f0ce62ceb1d9bb0c07e62d82bc2b6747bcc8..e83d60d4383608a5a67c70ea7f7298f5fbf348a2 100644
(file)
--- a/
src/common/controldata_utils.c
+++ b/
src/common/controldata_utils.c
@@
-83,11
+83,11
@@
get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p)
else
#ifndef FRONTEND
ereport(ERROR,
- (errmsg("could not read file \"%s\": read %d
bytes, expected
%d",
+ (errmsg("could not read file \"%s\": read %d
of
%d",
ControlFilePath, r, (int) sizeof(ControlFileData))));
#else
{
- fprintf(stderr, _("%s: could not read file \"%s\": read %d
bytes, expected
%d\n"),
+ fprintf(stderr, _("%s: could not read file \"%s\": read %d
of
%d\n"),
progname, ControlFilePath, r, (int) sizeof(ControlFileData));
exit(EXIT_FAILURE);
}