diff options
Diffstat (limited to 'src/common/controldata_utils.c')
-rw-r--r-- | src/common/controldata_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c index 60197b24406..e24af48f52e 100644 --- a/src/common/controldata_utils.c +++ b/src/common/controldata_utils.c @@ -83,7 +83,8 @@ 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 of %zu", + (errcode(ERRCODE_DATA_CORRUPTED), + errmsg("could not read file \"%s\": read %d of %zu", ControlFilePath, r, sizeof(ControlFileData)))); #else { |